Fix rowid to_sql_string printing

This commit is contained in:
pedrocarlo
2025-06-09 12:10:34 -03:00
parent cb4efdbc19
commit 36f60e4dd1
2 changed files with 9 additions and 6 deletions

View File

@@ -146,11 +146,9 @@ impl ToSqlString for Expr {
ret.push('.');
ret.push_str(context.get_column_name(*table, *column));
}
// TODO: not sure how to rewrite this
Expr::RowId {
database: _,
table: _,
} => todo!(),
Expr::RowId { database: _, table } => {
ret.push_str(&format!("{}.rowid", context.get_table_name(*table)))
}
Expr::InList { lhs, not, rhs } => {
ret.push_str(&format!(
"{} {}IN ({})",