[Zope-Checkins] CVS: Packages/Shared/DC/ZRDB - sqltest.py:1.18.68.3

Andreas Jung andreas at andreas-jung.com
Tue Oct 12 09:52:07 EDT 2004


Update of /cvs-repository/Packages/Shared/DC/ZRDB
In directory cvs.zope.org:/tmp/cvs-serv16518/lib/python/Shared/DC/ZRDB

Modified Files:
      Tag: Zope-2_7-branch
	sqltest.py 
Log Message:
reverted my change in sqltest.py


=== Packages/Shared/DC/ZRDB/sqltest.py 1.18.68.2 => 1.18.68.3 ===
--- Packages/Shared/DC/ZRDB/sqltest.py:1.18.68.2	Mon Oct 11 07:36:53 2004
+++ Packages/Shared/DC/ZRDB/sqltest.py	Tue Oct 12 09:52:07 2004
@@ -159,13 +159,6 @@
                     raise ValueError, (
                         'Invalid floating-point value for <em>%s</em>' % name)
 
-            ## ZSQL methods: added  workaround for a problem where a 'string' argument
-            ## variable was included into the generated query if the 'optional' flag inside
-            ## dtml-sqltest was set an if the value of the string was empty.
-
-            elif t=='string' and len(str(v)) == 0  and args.get('optional', 0):
-                continue
-
             else:
                 v=str(v)
                 v=md.getitem('sql_quote__',0)(v)



More information about the Zope-Checkins mailing list