From 88a70bd370a42c9ef941bb706c6c67501d45211d Mon Sep 17 00:00:00 2001 From: James Cor Date: Fri, 17 Nov 2023 12:02:43 -0800 Subject: [PATCH] adding tests --- enginetest/queries/queries.go | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/enginetest/queries/queries.go b/enginetest/queries/queries.go index e9f16c20d9..16bfe7859c 100644 --- a/enginetest/queries/queries.go +++ b/enginetest/queries/queries.go @@ -769,6 +769,22 @@ var QueryTests = []QueryTest{ Query: "SELECT 1 % true", Expected: []sql.Row{{"0"}}, }, + { + Query: "SELECT * from mytable where (1/1 and true)", + Expected: []sql.Row{ + {1, "first row"}, + {2, "second row"}, + {3, "third row"}, + }, + }, + { + Query: "SELECT * from mytable where (0.000 and true)", + Expected: []sql.Row{}, + }, + { + Query: "SELECT * from mytable where (-0.000 and true)", + Expected: []sql.Row{}, + }, { Query: "show full processlist", Expected: []sql.Row{},