admin
admin
4203 0 0

BAE Statement may not be safe to log in statement format

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.
0

See Also

Nearby


Discussion

Login Topics