From c217eaae4d574e75636c44784ec317cee3c44af6 Mon Sep 17 00:00:00 2001 From: kulath Date: Mon, 1 Aug 2016 23:29:46 +0100 Subject: [PATCH] Replace %s with ? as requested by Doug Blank. --- gramps/plugins/db/dbapi/postgresql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/db/dbapi/postgresql.py b/gramps/plugins/db/dbapi/postgresql.py index 1eedfdd3d..fecd023a1 100644 --- a/gramps/plugins/db/dbapi/postgresql.py +++ b/gramps/plugins/db/dbapi/postgresql.py @@ -96,7 +96,7 @@ class Postgresql: def table_exists(self, table): self.cursor.execute("SELECT COUNT(*) FROM information_schema.tables " - "WHERE table_name='%s';" % table) + "WHERE table_name=?;", [table]) return self.fetchone()[0] != 0 def close(self):