The following code gives me an error:
db = sqlite3.connect(dbfile)
cursor = db.cursor()
cursor.execute("SELECT gsr, {} FROM {} WHERE session_id=?".format(column,table),(id))
where column
and table
are strings and id
is a number. I'm getting a ValueError: parameters are of unsupported type error.
Why does this happen?