Uploaded image for project: 'Empire-DB'
  1. Empire-DB
  2. EMPIREDB-158

Avoid accidentally missng command parameter values when using DBDatabase.executeSQL

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • empire-db-2.4.1
    • None
    • None

    Description

      For executing insert, update and delete command the method DBDatabase.executeSQL must be used.
      When using prepared statements however it is necessary to use the overload that allows to specify the commands parameter values like this:
      db.executeSQL(cmd.getInsert(), cmd.getParamValues(), conn)
      In order to avoid that user use the wrong overload and forget to provided the command param values, the simple overload should be depreated.
      Instead new overlaods taking a command object should be supplied.

      Attachments

        Activity

          People

            doebele Rainer Döbele
            doebele Rainer Döbele
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: