You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Binding values to those questions marks are not supported by ws4sqlite (#39).
I know the documentation wrote that:
If the query needs to be parametrized, named parameters can be defined in the statement using SQLite (e.g. :id or @id), and the proper values for them must be specified here.
In the SQL statement text input to sqlite3_prepare_v2() and its variants, literals may be replaced by a parameter that matches one of following templates:
?
?NNN
:VVV
@VVV
$VVV
In the templates above, NNN represents an integer literal, and VVV represents an alphanumeric identifier. The values of these parameters (also called "host parameter names" or "SQL parameters") can be set using the sqlite3_bind_*() routines defined here.
The text was updated successfully, but these errors were encountered:
Not hard to support, actually; it's just that ws4sqlite doesn't mean to support everything that sqlite does. I went with the map approach because... well, I guess I liked it more. Also, allowed for a more intuitive deduplication (if you have two parameters that are the same, you just pass one, without tinkering with indexes).
Do you have an use case, or a preference? Nothing against implementing it.
For example, we have this query:
Binding values to those questions marks are not supported by
ws4sqlite
(#39).I know the documentation wrote that:
However, it is a syntax supported by SQLite itself:
The text was updated successfully, but these errors were encountered: