diff --git a/pg_chameleon/lib/pg_lib.py b/pg_chameleon/lib/pg_lib.py index c2009506..3be78ad3 100644 --- a/pg_chameleon/lib/pg_lib.py +++ b/pg_chameleon/lib/pg_lib.py @@ -3878,7 +3878,7 @@ def store_table(self, schema, table, table_pkey, master_status): binlog_pos = None - if len(table_pkey) > 0: + if (table_pkey is not None and len(table_pkey)) > 0: sql_insert = """ INSERT INTO sch_chameleon.t_replica_tables (