You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ddlutils-dev@db.apache.org by "Vignesh Swaminathan (JIRA)" <ji...@apache.org> on 2006/02/16 14:18:59 UTC

[jira] Created: (DDLUTILS-72) Update does not work due to two bugs in PlatformImplBase

Update does not work due to two bugs in PlatformImplBase
--------------------------------------------------------

         Key: DDLUTILS-72
         URL: http://issues.apache.org/jira/browse/DDLUTILS-72
     Project: DdlUtils
        Type: Bug
 Environment: PostgreSQL 8.1, should be applicable to other platforms also?
    Reporter: Vignesh Swaminathan
 Assigned to: Thomas Dudziak 
    Priority: Critical


Platform.update() was failing with exceptions

Two code bugs resulted in the exceptions,

Bug #1
PlatformImplBase method createUpdateSql Line 1279
Currently is

HashMap columnValues = toColumnValues(properties, bean);
return _builder.getUpdateSql(table, columnValues, bean == null);

but should be

HashMap columnValues = toColumnValues(properties, bean);
HashMap pkValues = toColumnValues(primaryKeys, bean);
columnValues.putAll(pkValues);
return _builder.getUpdateSql(table, columnValues, bean == null);

Bug #2
PlatformImplBase Line 1339
for (int idx = 0; idx < properties.length; idx++) should be for (int idx = 0; idx < primaryKeys.length; idx++)

<vignesh/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Closed: (DDLUTILS-72) Update does not work due to two bugs in PlatformImplBase

Posted by "Vignesh Swaminathan (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DDLUTILS-72?page=all ]
     
Vignesh Swaminathan closed DDLUTILS-72:
---------------------------------------


> Update does not work due to two bugs in PlatformImplBase
> --------------------------------------------------------
>
>          Key: DDLUTILS-72
>          URL: http://issues.apache.org/jira/browse/DDLUTILS-72
>      Project: DdlUtils
>         Type: Bug
>  Environment: PostgreSQL 8.1, should be applicable to other platforms also?
>     Reporter: Vignesh Swaminathan
>     Assignee: Thomas Dudziak
>     Priority: Critical

>
> Platform.update() was failing with exceptions
> Two code bugs resulted in the exceptions,
> Bug #1
> PlatformImplBase method createUpdateSql Line 1279
> Currently is
> HashMap columnValues = toColumnValues(properties, bean);
> return _builder.getUpdateSql(table, columnValues, bean == null);
> but should be
> HashMap columnValues = toColumnValues(properties, bean);
> HashMap pkValues = toColumnValues(primaryKeys, bean);
> columnValues.putAll(pkValues);
> return _builder.getUpdateSql(table, columnValues, bean == null);
> Bug #2
> PlatformImplBase Line 1339
> for (int idx = 0; idx < properties.length; idx++) should be for (int idx = 0; idx < primaryKeys.length; idx++)
> <vignesh/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (DDLUTILS-72) Update does not work due to two bugs in PlatformImplBase

Posted by "Thomas Dudziak (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DDLUTILS-72?page=all ]
     
Thomas Dudziak resolved DDLUTILS-72:
------------------------------------

    Resolution: Fixed

Fixed as per your suggestions

> Update does not work due to two bugs in PlatformImplBase
> --------------------------------------------------------
>
>          Key: DDLUTILS-72
>          URL: http://issues.apache.org/jira/browse/DDLUTILS-72
>      Project: DdlUtils
>         Type: Bug
>  Environment: PostgreSQL 8.1, should be applicable to other platforms also?
>     Reporter: Vignesh Swaminathan
>     Assignee: Thomas Dudziak
>     Priority: Critical

>
> Platform.update() was failing with exceptions
> Two code bugs resulted in the exceptions,
> Bug #1
> PlatformImplBase method createUpdateSql Line 1279
> Currently is
> HashMap columnValues = toColumnValues(properties, bean);
> return _builder.getUpdateSql(table, columnValues, bean == null);
> but should be
> HashMap columnValues = toColumnValues(properties, bean);
> HashMap pkValues = toColumnValues(primaryKeys, bean);
> columnValues.putAll(pkValues);
> return _builder.getUpdateSql(table, columnValues, bean == null);
> Bug #2
> PlatformImplBase Line 1339
> for (int idx = 0; idx < properties.length; idx++) should be for (int idx = 0; idx < primaryKeys.length; idx++)
> <vignesh/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Updated: (DDLUTILS-72) Update does not work due to two bugs in PlatformImplBase

Posted by "Thomas Dudziak (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/DDLUTILS-72?page=all ]

Thomas Dudziak updated DDLUTILS-72:
-----------------------------------

    Component: Core (No specific database)

> Update does not work due to two bugs in PlatformImplBase
> --------------------------------------------------------
>
>          Key: DDLUTILS-72
>          URL: http://issues.apache.org/jira/browse/DDLUTILS-72
>      Project: DdlUtils
>         Type: Bug

>   Components: Core (No specific database)
>  Environment: PostgreSQL 8.1, should be applicable to other platforms also?
>     Reporter: Vignesh Swaminathan
>     Assignee: Thomas Dudziak
>     Priority: Critical

>
> Platform.update() was failing with exceptions
> Two code bugs resulted in the exceptions,
> Bug #1
> PlatformImplBase method createUpdateSql Line 1279
> Currently is
> HashMap columnValues = toColumnValues(properties, bean);
> return _builder.getUpdateSql(table, columnValues, bean == null);
> but should be
> HashMap columnValues = toColumnValues(properties, bean);
> HashMap pkValues = toColumnValues(primaryKeys, bean);
> columnValues.putAll(pkValues);
> return _builder.getUpdateSql(table, columnValues, bean == null);
> Bug #2
> PlatformImplBase Line 1339
> for (int idx = 0; idx < properties.length; idx++) should be for (int idx = 0; idx < primaryKeys.length; idx++)
> <vignesh/>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira