libsql-experimental-python icon indicating copy to clipboard operation
libsql-experimental-python copied to clipboard

Support list of values for positional bound parameters

Open CodingDoug opened this issue 10 months ago • 0 comments

In sqlite3, this works as you would expect (list of values in square brackets vs. tuple in parens):

cur.execute("INSERT INTO users VALUES (?, ?)", [1, '[email protected]'])

In libsql, this yields the error:

TypeError: argument 'parameters': 'list' object cannot be converted to 'PyTuple'

CodingDoug avatar Aug 28 '23 13:08 CodingDoug