mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-02-07 12:50:32 +03:00
Fixed test for execution with older PostgreSQL versions
This commit is contained in:
parent
f96b68d8c6
commit
c01a7edbf4
|
@ -144,7 +144,8 @@ class CursorTests(unittest.TestCase):
|
|||
def test_invalid_name(self):
|
||||
curs = self.conn.cursor()
|
||||
curs.execute("create temp table invname (data int);")
|
||||
curs.execute("insert into invname values (10), (20), (30)")
|
||||
for i in (10,20,30):
|
||||
curs.execute("insert into invname values (%s)", (i,))
|
||||
curs.close()
|
||||
|
||||
curs = self.conn.cursor(r'1-2-3 \ "test"')
|
||||
|
|
Loading…
Reference in New Issue
Block a user