Skip to content
Snippets Groups Projects
Commit 6e2bfb7e authored by Andreas Kusalananda Kähäri's avatar Andreas Kusalananda Kähäri
Browse files

Unbreak

parent 3928baba
No related branches found
No related tags found
No related merge requests found
...@@ -701,7 +701,7 @@ sub dump_unmapped_object { ...@@ -701,7 +701,7 @@ sub dump_unmapped_object {
#----------------------------------------------------------------------- #-----------------------------------------------------------------------
sub upload_data { sub upload_data {
my ( $table_name, $ncols, $file_name, $dbh ) = @_; my ( $table_name, $ncols, $filename, $dbh ) = @_;
###################################################################### ######################################################################
# Upload data form a file to a table (give a file name and the # # Upload data form a file to a table (give a file name and the #
...@@ -712,7 +712,7 @@ sub upload_data { ...@@ -712,7 +712,7 @@ sub upload_data {
or croak( sprintf( "Can not open '%s' for reading", $filename ) ); or croak( sprintf( "Can not open '%s' for reading", $filename ) );
log_progress( "Uploading for '%s' from '%s'\n", log_progress( "Uploading for '%s' from '%s'\n",
$table_name, $file_name ); $table_name, $filename );
my $sql = sprintf( "INSERT INTO %s VALUES(%s)", my $sql = sprintf( "INSERT INTO %s VALUES(%s)",
$table_name, '?,' x ( $ncols - 1 ) . '?' ); $table_name, '?,' x ( $ncols - 1 ) . '?' );
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment