From: Oleg Broytman Date: Sun, 19 Mar 2017 16:19:00 +0000 (+0300) Subject: Fix mysql2sql: args.pg X-Git-Tag: 0.1.0~5 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=de3d7d28c48e20deb385c7b7a21b404cd42ce31d;p=sqlconvert.git Fix mysql2sql: args.pg --- 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'