zopefoundation / Products.ZMySQLDA

MySQL Database Adapter for Zope
https://zmysqlda.readthedocs.io
Other
1 stars 2 forks source link

Failed query logging does not check query length #19

Closed dataflake closed 4 years ago

dataflake commented 4 years ago

In Products/ZMySQLDA/db.py method DB._query failed queries are sent to the log as-is. This turns insane if the query is very long. The query length must be taken into account, if it is too long truncate it before logging.