Variable type coersion seems to be a problem with parameterized queries

This commit is contained in:
Bradley Bickford 2023-11-24 20:09:55 -05:00
parent 7bee11e4f4
commit e7681bf7cd

View File

@ -42,7 +42,7 @@ mydb = mysql.connector.connect(
cursor = mydb.cursor()
cursor.execute("SELECT call_start_time FROM call_states WHERE call_id = %d", (args.callid))
cursor.execute("SELECT call_start_time FROM call_states WHERE call_id = %d", (int(args.callid)))
call_start_time = cursor.fetchall()