db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r476490 - /db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBSybase.java
Date Sat, 18 Nov 2006 11:38:04 GMT
Author: tfischer
Date: Sat Nov 18 03:38:04 2006
New Revision: 476490

URL: http://svn.apache.org/viewvc?view=rev&rev=476490
Log:
Corrected backslash escaping behaviour in sybase and mysql

Modified:
    db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBSybase.java

Modified: db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBSybase.java
URL: http://svn.apache.org/viewvc/db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBSybase.java?view=diff&rev=476490&r1=476489&r2=476490
==============================================================================
--- db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBSybase.java (original)
+++ db/torque/runtime/trunk/src/java/org/apache/torque/adapter/DBSybase.java Sat Nov 18 03:38:04
2006
@@ -192,6 +192,22 @@
     }
 
     /**
+     * Determines whether backslashes (\) should be escaped in explicit SQL
+     * strings. If true is returned, a BACKSLASH will be changed to "\\".
+     * If false is returned, a BACKSLASH will be left as "\".
+     *
+     * Sybase (and MSSQL) doesn't define a default escape character,
+     * so false is returned.
+     *
+     * @return false
+     * @see org.apache.torque.adapter.DB#escapeText()
+     */
+    public boolean escapeText()
+    {
+        return false;
+    }
+
+    /**
      * Whether an escape clause in like should be used.
      * Example : select * from AUTHOR where AUTHOR.NAME like '\_%' ESCAPE '\';
      *



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


Mime
View raw message