Replace %s with ? as requested by Doug Blank.
This commit is contained in:
parent
fcf1c1d13b
commit
c217eaae4d
@ -96,7 +96,7 @@ class Postgresql:
|
|||||||
|
|
||||||
def table_exists(self, table):
|
def table_exists(self, table):
|
||||||
self.cursor.execute("SELECT COUNT(*) FROM information_schema.tables "
|
self.cursor.execute("SELECT COUNT(*) FROM information_schema.tables "
|
||||||
"WHERE table_name='%s';" % table)
|
"WHERE table_name=?;", [table])
|
||||||
return self.fetchone()[0] != 0
|
return self.fetchone()[0] != 0
|
||||||
|
|
||||||
def close(self):
|
def close(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user