Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-5666

Incorrectly finding "where" in query string

    XMLWordPrintableJSON

Details

    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

      Attachments

        1. test.groovy
          0.2 kB
          Josh Schwartzbeck

        Activity

          People

            paulk Paul King
            jschwartzbeck Josh Schwartzbeck
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: