Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.0.1
-
None
Description
groovy.sql.Sql.findWhereKeyword returns the index once all the characters in [w,h,e,r,e] are found but not necessarily adjacently.
This causes invalid sql to be generated - null values become conditions.
example of invalid generated sql:
update tbl set wh=null, ere=null, anotherfield is null where id=1