libsql-client-go icon indicating copy to clipboard operation
libsql-client-go copied to clipboard

Unsupported Positional Parameters

Open juliuslipp opened this issue 1 year ago • 2 comments

Hey guys,

I'm getting the following error when trying to query something with positional parameters:

error: unsuppoted positional parameter. This driver does not accept positional parameters with indexes (like ?<number>)"

With the (libsql-cgo)[https://github.com/libsql/go-libsql] client the query works without any problems (but the client has other problems lol)

Example query:

SELECT * FROM example
WHERE example_id = coalesce(?1,  example_id) or swag_id = coalesce(?2, swag_id)

juliuslipp avatar Feb 15 '24 11:02 juliuslipp