Skip to content

Commit b99da64

Browse files
author
Joni Freeman
committed
Do not fail on unsupported term, infer any as a fallback. Fixes #9
1 parent 6075bb9 commit b99da64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/typer.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@ class Typer(schema: Schema, stmt: Ast.Statement[Table]) extends Ast.Resolved {
306306
case TermList(terms) => tpeOf(SimpleExpr(terms.head), comparisonTerm)
307307
case ArithExpr(Input(), op, rhs) => tpeOf(SimpleExpr(rhs), comparisonTerm)
308308
case ArithExpr(lhs, op, rhs) => tpeOf(SimpleExpr(lhs), comparisonTerm)
309-
case x => sys.error("Term " + x + " not supported")
309+
case x => ((typeOf[Any], JdbcTypes.JAVA_OBJECT), false).ok
310310
}
311311

312312
case _ => ((typeOf[Boolean], JdbcTypes.BOOLEAN), false).ok

0 commit comments

Comments
 (0)