[Checkins] SVN: Products.SQLAlchemyDA/trunk/da.py changed quoting
code
Andreas Jung
andreas at andreas-jung.com
Sun Jun 10 07:30:10 EDT 2007
Log message for revision 76568:
changed quoting code
Changed:
U Products.SQLAlchemyDA/trunk/da.py
-=-
Modified: Products.SQLAlchemyDA/trunk/da.py
===================================================================
--- Products.SQLAlchemyDA/trunk/da.py 2007-06-10 10:34:34 UTC (rev 76567)
+++ Products.SQLAlchemyDA/trunk/da.py 2007-06-10 11:30:09 UTC (rev 76568)
@@ -82,7 +82,7 @@
def allQuotingStyles(self):
- return ('standard', 'oracle')
+ return ('standard', 'no-quote')
@property
def _wrapper(self):
@@ -197,8 +197,7 @@
def sql_quote__(self, s):
- if self.quoting_style == 'oracle':
- # oracle style quoting
+ if self.quoting_style == 'standard':
if "\'" in s:
s = "''".join(s.split("\'"))
return "'%s'" % s
More information about the Checkins
mailing list