Skip to content

Commit

Permalink
fix #[58]
Browse files Browse the repository at this point in the history
  • Loading branch information
zhuxiujia committed Jun 29, 2020
1 parent 7884e4f commit 0c28ce4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ast/NodeWhere.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ func (it *NodeWhere) Eval(env map[string]interface{}, arg_array *[]interface{},
sql = bytes.TrimPrefix(sql, []byte("AND"))
sql = bytes.TrimPrefix(sql, []byte("And"))

sql = bytes.TrimPrefix(sql, []byte("or"))
sql = bytes.TrimPrefix(sql, []byte("OR"))
sql = bytes.TrimPrefix(sql, []byte("Or"))

var newBuffer bytes.Buffer
newBuffer.WriteString(` `)
newBuffer.WriteString("WHERE")
Expand Down

0 comments on commit 0c28ce4

Please sign in to comment.