X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bp_bin%2Fwrite_mysql;h=2d0a2142f83ea0cc15f7efa38fe94f4d6f7a4280;hb=172f31c83a6de7f5af893cae7fe5d39714d50ff7;hp=aa2c5a431cc703814f7441c7ad93f9957263ed3b;hpb=5bd2ef552465d127a535351e51bf9a1f889e23b0;p=biopieces.git diff --git a/bp_bin/write_mysql b/bp_bin/write_mysql index aa2c5a4..2d0a214 100755 --- a/bp_bin/write_mysql +++ b/bp_bin/write_mysql @@ -122,6 +122,10 @@ if ( Maasha::SQL::table_exists( $dbh, $options->{ 'table' } ) ) create_table( $dbh, $options->{ 'table' }, $type_hash, $options->{ 'index' }, $options->{ 'verbose' } ); } } +else +{ + create_table( $dbh, $options->{ 'table' }, $type_hash, $options->{ 'index' }, $options->{ 'verbose' } ); +} Maasha::SQL::bulk_load_file( $dbh, $tmp_file, $options->{ 'table' }, "\t" ) if Maasha::SQL::table_exists( $dbh, $options->{ 'table' } );