BAE Statement may not be safe to log in statement format

By admin at 2013-10-01 20:17:14 • 900次点击

python + tornado + torndb 出现这样的错误几率还挺高。

Traceback (most recent call last):
  File "/home/bae/instanceall/instance1/pyruntime/lib/python2.7/site-packages/tornado/web.py", line 954, in _execute
    getattr(self, self.request.method.lower())(*args, **kwargs)
  File "/home/bae/instanceall/instance1/codefs/xxxxxx/views.py", line 415, in get
    self.db.execute("UPDATE ........."))
  File "/home/bae/instanceall/instance1/codefs/xxxxxx/torndb.py", line 151, in execute
    return self.execute_lastrowid(query, *parameters)
  File "/home/bae/instanceall/instance1/codefs/xxxxxx/torndb.py", line 157, in execute_lastrowid
    self._execute(cursor, query, parameters)
  File "/home/bae/instanceall/instance1/codefs/xxxxxx/torndb.py", line 219, in _execute
    return cursor.execute(query, parameters)
  File "/home/bae/instanceall/instance1/pyruntime/lib/python2.7/site-packages/MySQLdb/cursors.py", line 176, in execute
    if not self._defer_warnings: self._warning_check()
  File "/home/bae/instanceall/instance1/pyruntime/lib/python2.7/site-packages/MySQLdb/cursors.py", line 92, in _warning_check
    warn(w[-1], self.Warning, 3)
Warning: Statement may not be safe to log in statement format.

bae, statement, may, not, be, safe, to, log, in, format


登录 后发表评论