empire-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rainer Döbele (JIRA) <empire-db-...@incubator.apache.org>
Subject [jira] [Created] (EMPIREDB-158) Avoid accidentally missng command parameter values when using DBDatabase.executeSQL
Date Thu, 16 Aug 2012 12:37:37 GMT
Rainer Döbele created EMPIREDB-158:
--------------------------------------

             Summary: Avoid accidentally missng command parameter values when using DBDatabase.executeSQL
                 Key: EMPIREDB-158
                 URL: https://issues.apache.org/jira/browse/EMPIREDB-158
             Project: Empire-DB
          Issue Type: Improvement
            Reporter: Rainer Döbele
            Assignee: Rainer Döbele


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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

Mime
View raw message