I have a table with fields
TABLE_PASTE(
user_text longtext NOT NULL,
number integer NOT NULL
)
I am trying to insert a row in this table TABLE_PASTE
from python using MySQLDb driver.
text="large_text"
value = 1
cursor.execute("Update TABLE_PASTE set user_text = ? where number = ?",(text,value))
Am getting this error
query = query % db.literal(args)
TypeError: not all arguments converted during string formatting