X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=scripts%2Fmysql2sql;fp=scripts%2Fmysql2sql;h=3766c971ba0499fb49c9ef6d54273a7a314673a2;hp=f06234aeaf3ef48ede0765eb2a1e9f9f1a85ed43;hb=6f433a4531f0e301f3534de7f0278afbcf79d50e;hpb=8a3034769f6006936f2638715f457feeb27fba9d diff --git a/scripts/mysql2sql b/scripts/mysql2sql index f06234a..3766c97 100755 --- a/scripts/mysql2sql +++ b/scripts/mysql2sql @@ -56,9 +56,9 @@ def main(infile, encoding, outfile, output_encoding, use_pbar, quoting_style): got_directive = is_directive_statement(statement) if got_directive: continue - process_statement(statement, quoting_style) - print_tokens(statement, outfile=outfile, - encoding=output_encoding) + for statement in process_statement(statement, quoting_style): + print_tokens(statement, outfile=outfile, + encoding=output_encoding) tokens = grouper.close() if tokens: for token in tokens: