File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -4215,17 +4215,17 @@ def tearDown(self):
4215
4215
def test_big_column_count (self ):
4216
4216
cur = self .cnx .cursor (raw = False , buffered = False )
4217
4217
# Create table with 512 Columns
4218
- table = "CREATE TABLE t ({0 })" .format (
4218
+ table = "CREATE TABLE {0} ({1 })" .format (self . tbl ,
4219
4219
", " .join (["c{0} INT" .format (idx ) for idx in range (512 )]))
4220
4220
cur .execute (table )
4221
4221
4222
4222
# Insert 1 record
4223
- cur .execute ("INSERT INTO t (c1) values (1) " )
4223
+ cur .execute ("INSERT INTO {0} (c1) values (1) " . format ( self . tbl ) )
4224
4224
self .cnx .commit ()
4225
4225
4226
4226
# Select from 10 tables
4227
4227
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 )]))
4229
4229
cur .execute (query )
4230
4230
cur .fetchone ()
4231
4231
cur .close ()
You can’t perform that action at this time.
0 commit comments