tursodatabase / libsql-experimental-python

libSQL API for Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support list of values for positional bound parameters

CodingDoug opened this issue · 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, 'alice@example.org'])

In libsql, this yields the error:

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