mirror of
https://github.com/aljazceru/turso.git
synced 2026-01-18 07:34:19 +01:00
do not treat registers as constant
This commit is contained in:
@@ -1143,7 +1143,7 @@ impl Optimizable for ast::Expr {
|
||||
Expr::Subquery(_) => false,
|
||||
Expr::Unary(_, expr) => expr.is_constant(resolver),
|
||||
Expr::Variable(_) => true,
|
||||
Expr::Register(_) => true,
|
||||
Expr::Register(_) => false,
|
||||
}
|
||||
}
|
||||
/// Returns true if the expression is a constant expression that, when evaluated as a condition, is always true or false
|
||||
|
||||
Reference in New Issue
Block a user