db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From krist...@apache.org
Subject svn commit: r782906 - /db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java
Date Tue, 09 Jun 2009 08:14:15 GMT
Author: kristwaa
Date: Tue Jun  9 08:14:13 2009
New Revision: 782906

URL: http://svn.apache.org/viewvc?rev=782906&view=rev
Log:
Replaced reference equality check for two strings with equals.

Modified:
    db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java

Modified: db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java?rev=782906&r1=782905&r2=782906&view=diff
==============================================================================
--- db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java (original)
+++ db/derby/code/trunk/java/engine/org/apache/derby/impl/jdbc/EmbedClob.java Tue Jun  9 08:14:13
2009
@@ -325,7 +325,7 @@
         if (searchStr == null)
             throw Util.generateCsSQLException(
                             SQLState.BLOB_NULL_PATTERN_OR_SEARCH_STR);
-        if (searchStr == "")
+        if ("".equals(searchStr))
             return start; // match DB2's SQL LOCATE function
 
         boolean pushStack = false;



Mime
View raw message