Skip to content

Commit 414f356

Browse files
committed
Fix BugOra21530841 that does not drop the test table correctly
1 parent 322d126 commit 414f356

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/test_bugs.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4215,17 +4215,17 @@ def tearDown(self):
42154215
def test_big_column_count(self):
42164216
cur = self.cnx.cursor(raw=False, buffered=False)
42174217
# Create table with 512 Columns
4218-
table = "CREATE TABLE t ({0})".format(
4218+
table = "CREATE TABLE {0} ({1})".format(self.tbl,
42194219
", ".join(["c{0} INT".format(idx) for idx in range(512)]))
42204220
cur.execute(table)
42214221

42224222
# Insert 1 record
4223-
cur.execute("INSERT INTO t(c1) values (1) ")
4223+
cur.execute("INSERT INTO {0}(c1) values (1) ".format(self.tbl))
42244224
self.cnx.commit()
42254225

42264226
# Select from 10 tables
42274227
query = "SELECT * FROM {0} WHERE a1.c1 > 0".format(
4228-
", ".join(["t a{0}".format(idx) for idx in range(10)]))
4228+
", ".join(["{0} a{1}".format(self.tbl, idx) for idx in range(10)]))
42294229
cur.execute(query)
42304230
cur.fetchone()
42314231
cur.close()

0 commit comments

Comments
 (0)