Closed lsynchr closed 8 years ago
you missed out that a tuple with a single value must be written like (item,)
in python, see e.g.: https://wiki.python.org/moin/TupleSyntax.
so in your POC, this is the correct syntax/usage:
cursor.execute("""INSERT INTO test_2(o) VALUES(?)""", ({'db' : 'Crate'},))
Here is my POCs.