Skip to content

Commit

Permalink
adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
James Cor committed Nov 17, 2023
1 parent 9abbaee commit 88a70bd
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions enginetest/queries/queries.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{},
Expand Down

0 comments on commit 88a70bd

Please sign in to comment.