fix sql syntax error

This commit is contained in:
andyque 2014-10-15 01:04:00 +08:00
parent fe4c45061e
commit bd37d62026
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ def close_db(db):
def save_build_stats(db, pr, filename, size):
cursor = db.cursor()
sql = "INSERT INTO \"%s\" (number, size, createdTime) VALUES(%d, %d, now())" % (filename, pr, size)
sql = "INSERT INTO `%s` (number, size, createdTime) VALUES(%d, %d, now())" % (filename, pr, size)
print sql
cursor.execute(sql)
db.commit()