From de3d7d28c48e20deb385c7b7a21b404cd42ce31d Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sun, 19 Mar 2017 19:19:00 +0300 Subject: [PATCH] Fix mysql2sql: args.pg --- scripts/mysql2sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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' -- 2.39.2