I can't get ? instead of %s to work on an insert with python mysqldb.
I try
cur.execute("""INSERT INTO project (project) VALUES (?) """, ('ham'))
but I get
query = query % db.literal(args)
TypeError: not all arguments converted during string formatting
works fine if I simply substitute ? with %s
What am I doing wrong?
%s
. Use that only