fix get_column_name() when column name doesn't exist

This commit is contained in:
meteorgan
2025-07-25 23:47:25 +08:00
parent e0e3c52535
commit b5a18d7dc9
5 changed files with 22 additions and 17 deletions

View File

@@ -54,7 +54,11 @@ mod tests {
// Placeholders for compilation
// Context only necessary parsing inside turso_core or in the simulator
impl ToSqlContext for TestContext {
fn get_column_name(&self, _table_id: crate::ast::TableInternalId, _col_idx: usize) -> &str {
fn get_column_name(
&self,
_table_id: crate::ast::TableInternalId,
_col_idx: usize,
) -> String {
todo!()
}