Adding upstream version 25.1.0.
Signed-off-by: Daniel Baumann <daniel@debian.org>
This commit is contained in:
parent
91ffc387a9
commit
147b6e06e8
79 changed files with 28803 additions and 24929 deletions
|
@ -505,7 +505,10 @@ def ensure_bools(expression: exp.Expression) -> exp.Expression:
|
|||
def _ensure_bool(node: exp.Expression) -> None:
|
||||
if (
|
||||
node.is_number
|
||||
or node.is_type(exp.DataType.Type.UNKNOWN, *exp.DataType.NUMERIC_TYPES)
|
||||
or (
|
||||
not isinstance(node, exp.SubqueryPredicate)
|
||||
and node.is_type(exp.DataType.Type.UNKNOWN, *exp.DataType.NUMERIC_TYPES)
|
||||
)
|
||||
or (isinstance(node, exp.Column) and not node.type)
|
||||
):
|
||||
node.replace(node.neq(0))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue