db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b..@apache.org
Subject svn commit: r372985 - /db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java
Date Fri, 27 Jan 2006 21:07:29 GMT
Author: brj
Date: Fri Jan 27 13:07:25 2006
New Revision: 372985

URL: http://svn.apache.org/viewcvs?rev=372985&view=rev
Log:
bugfix for quoted names

Modified:
    db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java

Modified: db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java
URL: http://svn.apache.org/viewcvs/db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java?rev=372985&r1=372984&r2=372985&view=diff
==============================================================================
--- db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java (original)
+++ db/ojb/trunk/src/java/org/apache/ojb/broker/platforms/PlatformDefaultImpl.java Fri Jan
27 13:07:25 2006
@@ -438,7 +438,14 @@
      */
     public String quoteName(String aString)
     {
-        return SqlHelper.stripOjbQuotes(aString);
+        String result = SqlHelper.stripOjbQuotes(aString);
+        
+        if (aString.length() > result.length())
+        {
+            result = getQuotedName(result);           
+        }
+               
+        return result; 
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message