Commit 6586619e authored by Xiaowu Zhang's avatar Xiaowu Zhang

Revert "ZMySQLDA/db.py: show error sql in log"

This reverts commit 1c2ab1ec.
parent a85c3162
......@@ -395,10 +395,10 @@ class DB(TM):
self._forceReconnection()
self.db.query(query)
else:
LOG(' Operation ZMySQLDA', ERROR, 'query failed: %s' % (query,))
LOG('ZMySQLDA', ERROR, 'query failed: %s' % (query,))
raise
except ProgrammingError:
LOG('Programming ZMySQLDA', ERROR, 'query failed: %s' % (query,))
LOG('ZMySQLDA', ERROR, 'query failed: %s' % (query,))
raise
try:
return self.db.store_result()
......@@ -432,8 +432,6 @@ class DB(TM):
qs = "SET STATEMENT %s FOR SELECT %s" % (statement, select)
if max_rows:
qs = "%s LIMIT %d" % (qs, max_rows)
if ';' in qs:
LOG('query with ;', ERROR, query_string)
c = self._query(qs)
if c:
if desc is not None is not c.describe():
......
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