Skip to content

Commit

Permalink
Don't allow ABS("foo") (#3430)
Browse files Browse the repository at this point in the history
Co-authored-by: hfhbd <hfhbd@users.noreply.github.com>
  • Loading branch information
hfhbd and hfhbd committed Aug 11, 2022
1 parent a7e9a8f commit 00a2a77
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -134,7 +134,7 @@ internal object AnsiSqlTypeResolver : TypeResolver {
}

"avg" -> IntermediateType(REAL).asNullable()
"abs" -> exprList[0].type()
"abs" -> encapsulatingType(exprList, INTEGER, REAL)
"iif" -> exprList[1].type()
"coalesce", "ifnull" -> encapsulatingType(exprList, INTEGER, REAL, TEXT, BLOB)
"nullif" -> exprList[0].type().asNullable()
Expand Down

0 comments on commit 00a2a77

Please sign in to comment.