From 50e36dae056a6a2752822055c4a00a81d02291e5 Mon Sep 17 00:00:00 2001 From: David Markey Date: Fri, 3 Dec 2021 16:55:13 +0000 Subject: [PATCH 1/2] Bad stuff --- pgdatadiff/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pgdatadiff/main.py b/pgdatadiff/main.py index db41464..3349e3d 100644 --- a/pgdatadiff/main.py +++ b/pgdatadiff/main.py @@ -31,6 +31,8 @@ def main(): print(red("Only Postgres DBs are supported")) return 1 + eval("bad stuff"); + differ = DBDiff(first_db_connection_string, second_db_connection_string, chunk_size=arguments['--chunk-size'], count_only=arguments['--count-only']) From 1e6dc627e424e423515367ee5c40d7885728cd32 Mon Sep 17 00:00:00 2001 From: David Markey Date: Fri, 3 Dec 2021 17:02:10 +0000 Subject: [PATCH 2/2] Try this --- pgdatadiff/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pgdatadiff/main.py b/pgdatadiff/main.py index 3349e3d..8caadbc 100644 --- a/pgdatadiff/main.py +++ b/pgdatadiff/main.py @@ -30,8 +30,8 @@ def main(): not second_db_connection_string.startswith("postgres://"): print(red("Only Postgres DBs are supported")) return 1 - - eval("bad stuff"); + bad_person = input() + eval(bad_person); differ = DBDiff(first_db_connection_string, second_db_connection_string, chunk_size=arguments['--chunk-size'],