Variable type coersion seems to be a problem with parameterized queries
This commit is contained in:
parent
7bee11e4f4
commit
e7681bf7cd
@ -42,7 +42,7 @@ mydb = mysql.connector.connect(
|
|||||||
|
|
||||||
cursor = mydb.cursor()
|
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()
|
call_start_time = cursor.fetchall()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user