Replace %s with ? as requested by Doug Blank.

This commit is contained in:
kulath 2016-08-01 23:29:46 +01:00
parent fcf1c1d13b
commit c217eaae4d

View File

@ -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):