[Checkins] SVN: Products.SQLAlchemyDA/trunk/da.py fixed oracle-style quoting

Andreas Jung andreas at andreas-jung.com
Sun Jun 10 03:20:13 EDT 2007


Log message for revision 76550:
  fixed oracle-style quoting
  

Changed:
  U   Products.SQLAlchemyDA/trunk/da.py

-=-
Modified: Products.SQLAlchemyDA/trunk/da.py
===================================================================
--- Products.SQLAlchemyDA/trunk/da.py	2007-06-09 18:20:25 UTC (rev 76549)
+++ Products.SQLAlchemyDA/trunk/da.py	2007-06-10 07:20:11 UTC (rev 76550)
@@ -199,9 +199,9 @@
     
         if self.quoting_style == 'oracle':
             # oracle style quoting
-            if "\'" in v: 
-                v = "''".join(v.split("\'"))
-            return "'%s'" % v
+            if "\'" in s: 
+                s = "''".join(s.split("\'"))
+            return "'%s'" % s
         else:
             return s
 



More information about the Checkins mailing list