Skip to content

Commit e0c52a0

Browse files
committed
fix error in simple-benchmark
1 parent 0d85ae4 commit e0c52a0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

simple-benchmark

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -77,17 +77,8 @@ def setup_test_db():
7777
with get_connection(db="information_schema") as conn:
7878
print('Creating database %s' % options.database)
7979

80-
try:
81-
# note: the following query will fail if there is an existing database
82-
conn.query('CREATE DATABASE %s' % options.database)
83-
except database.MySQLError:
84-
print("Database %s already exists - since we drop the database at" % options.database)
85-
print("the end of this script, please specify an un-used database")
86-
print("with the --database flag.")
87-
sys.exit(1)
88-
80+
conn.query('CREATE DATABASE %s' % options.database)
8981
conn.query('USE %s' % options.database)
90-
9182
conn.query('CREATE TABLE IF NOT EXISTS %s (id INT AUTO_INCREMENT PRIMARY KEY, val INT)' % TABLE)
9283

9384
def warmup():

0 commit comments

Comments
 (0)