openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r1222853 - /openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java
Date Fri, 23 Dec 2011 21:13:36 GMT
Author: ppoddar
Date: Fri Dec 23 21:13:35 2011
New Revision: 1222853

URL: http://svn.apache.org/viewvc?rev=1222853&view=rev
Log:
OPENJPA-2099: Introduce bind parameter. Remove direct string appending to Select

Modified:
    openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java

Modified: openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java?rev=1222853&r1=1222852&r2=1222853&view=diff
==============================================================================
--- openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java (original)
+++ openjpa/trunk/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/SQLBuffer.java Fri
Dec 23 21:13:35 2011
@@ -216,8 +216,7 @@ public final class SQLBuffer
      * Append a parameter value.
      */
     public SQLBuffer appendValue(Object o) {
-    	_sql.append(o == null ? "NULL" : o.toString());
-        return this;
+        return appendValue(o, null, null);
     }
     
     /**



Mime
View raw message