Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.37.0
Description
Running the following unit test in JdbcAdapterTest fails with
@Test void testOperatorInWhere() { CalciteAssert.model(FoodmartSchema.FOODMART_MODEL) .query("select * from \"sales_fact_1997\" " + "where (\"product_id\" = 1) = ?") .consumesPreparedStatement(p -> p.setBoolean(1, true)) .runs(); }
Caused by: java.sql.SQLSyntaxErrorException: unexpected token: = : line: 3 in statement [SELECT * FROM "foodmart"."sales_fact_1997" WHERE "product_id" = 1 = ?
Attachments
Issue Links
- links to