cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From torehal...@apache.org
Subject svn commit: r406869 - /incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/access/trans/DeleteBatchQueryBuilder.java
Date Tue, 16 May 2006 07:56:39 GMT
Author: torehalset
Date: Tue May 16 00:56:38 2006
New Revision: 406869

URL: http://svn.apache.org/viewcvs?rev=406869&view=rev
Log:
CAY-548 (partly). Be consistent about null handling in a DeleteBatchQuery

Modified:
    incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/access/trans/DeleteBatchQueryBuilder.java

Modified: incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/access/trans/DeleteBatchQueryBuilder.java
URL: http://svn.apache.org/viewcvs/incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/access/trans/DeleteBatchQueryBuilder.java?rev=406869&r1=406868&r2=406869&view=diff
==============================================================================
--- incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/access/trans/DeleteBatchQueryBuilder.java
(original)
+++ incubator/cayenne/main/trunk/cayenne/cayenne-java/src/cayenne/java/org/objectstyle/cayenne/access/trans/DeleteBatchQueryBuilder.java
Tue May 16 00:56:38 2006
@@ -113,12 +113,13 @@
 
         for (int i = 0; i < qualifierAttributes.size(); i++) {
             Object value = query.getValue(i);
+            DbAttribute attribute = (DbAttribute) qualifierAttributes.get(i);
 
-            // skip null values... they are translated as "IS NULL"
-            if (null == value)
+            // skip null attributes... they are translated as "IS NULL"
+            if (deleteBatch.isNull(attribute)) {
                 continue;
+            }
 
-            DbAttribute attribute = (DbAttribute) qualifierAttributes.get(i);
             adapter.bindParameter(
                     statement,
                     value,



Mime
View raw message