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] [Resolved] (EMPIREDB-158) Avoid accidentally missng command parameter values when using DBDatabase.executeSQL
Date Tue, 21 Aug 2012 09:12:37 GMT

     [ https://issues.apache.org/jira/browse/EMPIREDB-158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel

Rainer Döbele resolved EMPIREDB-158.

       Resolution: Fixed
    Fix Version/s: empire-db-2.4.1

new methods in DBDatabase:
- executeInsert
- executeUpdate
- executeDelete
> 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
>             Fix For: empire-db-2.4.1
> 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


View raw message