Commit 4b02a4ea authored by Andreas Jung's avatar Andreas Jung

reverting change in sql.test.py

parent 7f35a2c8
...@@ -27,10 +27,6 @@ Zope Changes ...@@ -27,10 +27,6 @@ Zope Changes
Features added Features added
- 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.
- Included Stefan Holek's ZopeTestCase 0.9 - Included Stefan Holek's ZopeTestCase 0.9
- The SiteErrorLog allows you to acknowledge (or delete) exceptions, - The SiteErrorLog allows you to acknowledge (or delete) exceptions,
......
...@@ -159,13 +159,6 @@ class SQLTest: ...@@ -159,13 +159,6 @@ class SQLTest:
raise ValueError, ( raise ValueError, (
'Invalid floating-point value for <em>%s</em>' % name) '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: else:
v=str(v) v=str(v)
v=md.getitem('sql_quote__',0)(v) v=md.getitem('sql_quote__',0)(v)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment