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
Greetings,
i'm trying to use a select in statement but don't seem to able to.
letmut cursor = conn
.prepare("SELECT * FROM users WHERE age in (?)").// <-- carray.unwrap().into_cursor();
cursor.bind(&[[Value::Integer(42),Value::Integer(50)]]).unwrap();// <-- fails since expectation is Value not array/tuple
is this currently possible ?
The text was updated successfully, but these errors were encountered:
Hello, thank you for the note. Does SQLite have support for this? Which binding function is this? As a workaround, I suppose you can have as many placeholders as you like.
as a workaround , i'm construct the stmt string with params in place, e.g.
let stmt = "select * from users where age in (?)";let params = vec![Value::Integer(42).as_integer().unwrap(),
Value::Integer(50).as_integer().unwrap(),
];let stmt = stmt.replace("?",&join(params,","));
IvanUkhov
changed the title
carray support
Add support for binding arrays
Sep 4, 2021
Greetings,
i'm trying to use a
select in
statement but don't seem to able to.is this currently possible ?
The text was updated successfully, but these errors were encountered: