X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=scripts%2Fmysql2sql;h=3766c971ba0499fb49c9ef6d54273a7a314673a2;hb=6f433a4531f0e301f3534de7f0278afbcf79d50e;hp=f06234aeaf3ef48ede0765eb2a1e9f9f1a85ed43;hpb=9412933a68ffdcb20dacb9ff927d4eb285fded2e;p=sqlconvert.git 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: