X-Git-Url: https://git.phdru.name/?p=sqlconvert.git;a=blobdiff_plain;f=scripts%2Fmysql2sql;h=e4f2e4bbf9fa0eb9c84c1759fcd41cc79b13cfb0;hp=3766c971ba0499fb49c9ef6d54273a7a314673a2;hb=de3d7d28c48e20deb385c7b7a21b404cd42ce31d;hpb=95103778dd6d6d279d9b3c9f83ff49ea5920c6e5 diff --git a/scripts/mysql2sql b/scripts/mysql2sql index 3766c97..e4f2e4b 100755 --- a/scripts/mysql2sql +++ b/scripts/mysql2sql @@ -90,7 +90,7 @@ if __name__ == '__main__': parser.add_argument('output_file', nargs='?', help='output file name') args = parser.parse_args() - if int(args.mysql) + int(args.postgres) + int(args.sqlite) > 1: + if int(args.mysql) + int(args.pg) + int(args.sqlite) > 1: print("Error: options -m/-p/-s are mutually incompatible, " "use only one of them", file=sys.stderr) @@ -143,7 +143,7 @@ if __name__ == '__main__': if args.mysql: quoting_style = 'mysql' - elif args.postgres: + elif args.pg: quoting_style = 'postgres' else: quoting_style = 'sqlite'