[Sqlalchemy-tickets] Issue #3026: 'test plain returns' noise when setting echo=True (zzzeek/sqlalch
Brought to you by:
zzzeek
|
From: monsanto <iss...@bi...> - 2014-04-17 14:35:05
|
New issue 3026: 'test plain returns' noise when setting echo=True https://bitbucket.org/zzzeek/sqlalchemy/issue/3026/test-plain-returns-noise-when-setting-echo monsanto: When using the pysqlite dialect, setting echo=True will print ``` 2014-04-17 14:25:25,950 INFO sqlalchemy.engine.base.Engine SELECT CAST('test plain returns' AS VARCHAR(60)) AS anon_1 2014-04-17 14:25:25,950 INFO sqlalchemy.engine.base.Engine () 2014-04-17 14:25:25,950 INFO sqlalchemy.engine.base.Engine SELECT CAST('test unicode returns' AS VARCHAR(60)) AS anon_1 2014-04-17 14:25:25,950 INFO sqlalchemy.engine.base.Engine () ``` when executing the first query. There appears to be no way to tell DefaultDialect not to run these tests--it ignores any existing value of `returns_unicode_strings`. Why this is a problem: I have a script that connects, runs a query, and disconnects. This script is run at a regular interval. When debugging this script, the cast tests take up 2/3s of the log. |