merge main

This commit is contained in:
TcMits
2025-08-27 13:36:54 +07:00
115 changed files with 5078 additions and 3202 deletions

View File

@@ -716,6 +716,11 @@ impl ToTokens for Expr {
op.to_tokens(s, context)?;
rhs.to_tokens(s, context)
}
Self::Register(reg) => {
// This is for internal use only, not part of SQL syntax
// Use a special notation that won't conflict with SQL
s.append(TK_VARIABLE, Some(&format!("$r{reg}")))
}
Self::Case {
base,
when_then_pairs,