mirror of
https://github.com/aljazceru/turso.git
synced 2026-02-23 00:45:37 +01:00
Fix panic when double quoted strings are used for column names in SQL statements. Double quoted strings are not supported in SQLite. Fixes https://github.com/tursodatabase/limbo/issues/800
This commit is contained in:
@@ -1626,7 +1626,12 @@ pub fn translate_expr(
|
||||
}
|
||||
}
|
||||
ast::Expr::FunctionCallStar { .. } => todo!(),
|
||||
ast::Expr::Id(_) => unreachable!("Id should be resolved to a Column before translation"),
|
||||
ast::Expr::Id(id) => {
|
||||
crate::bail_parse_error!(
|
||||
"no such column: {} - should this be a string literal in single-quotes?",
|
||||
id.0
|
||||
)
|
||||
}
|
||||
ast::Expr::Column {
|
||||
database: _,
|
||||
table,
|
||||
|
||||
Reference in New Issue
Block a user