mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 08:55:40 +01:00
passing incorrect number of values to virtual table insert
This commit is contained in:
@@ -720,7 +720,7 @@ fn translate_virtual_table_insert(
|
||||
) -> Result<ProgramBuilder> {
|
||||
let (num_values, value) = match &mut body {
|
||||
InsertBody::Select(select, None) => match select.body.select.as_mut() {
|
||||
OneSelect::Values(values) => (1, values.pop().unwrap()),
|
||||
OneSelect::Values(values) => (values[0].len(), values.pop().unwrap()),
|
||||
_ => crate::bail_parse_error!("Virtual tables only support VALUES clause in INSERT"),
|
||||
},
|
||||
InsertBody::DefaultValues => (0, vec![]),
|
||||
|
||||
Reference in New Issue
Block a user