Support for subqueries, Group By and Having clause.

This commit is contained in:
zer0sub 2019-03-30 10:17:32 +01:00
parent ddf816c998
commit 5a7563d4af
12 changed files with 674 additions and 305 deletions

View file

@ -262,7 +262,7 @@ func (s *ExprSuite) TestLtExpr(c *gc.C) {
}
func (s *ExprSuite) TestLteExpr(c *gc.C) {
expr := LteL(table1Col1, "foo\"';drop user table;")
expr := LteL(table1Col1, "foo\"';drop user tableName;")
buf := &bytes.Buffer{}
@ -273,7 +273,7 @@ func (s *ExprSuite) TestLteExpr(c *gc.C) {
c.Assert(
sql,
gc.Equals,
"table1.col1<='foo\\\"\\';drop user table;'")
"table1.col1<='foo\\\"\\';drop user tableName;'")
}
func (s *ExprSuite) TestGtExpr(c *gc.C) {