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

Enable use of parameter list in SQL IN Clause

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.8.6
    • Fix Version/s: None
    • Component/s: SQL processing
    • Labels:
      None

      Description

      Groovy SQL (groovy.sql.Sql) provides methods to bind an Array of parameters to sql (e.g. rows, eachRow, execute, executeUpdate, ...).
      But you have a problem if you need to pass parameter lists to your sql statement which has a IN clause.
      There exists a workaround for this problem, but this is not very groovy.
      see discussions here:
      http://groovy.329449.n5.nabble.com/In-operator-in-Groovy-SQL-td4768856.html
      http://stackoverflow.com/questions/2861230/what-is-the-best-approach-using-jdbc-for-parameterizing-an-in-clause

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stuhlpfarrer Gerhard Stuhlpfarrer
            • Votes:
              8 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated: