You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you pass a SQL object from psycopg2.sql, we run into an unexpected error in the is_sql_dirty function. When we hit the line that tries to do sql.lower(), we may have passed in a SQL object, resulting in packages/cacheops/transaction.py", line 113, in is_sql_dirty sql = sql.lower() AttributeError: 'Composed' object has no attribute 'lower'
Perhaps it would be reasonable to add a block such as
The text was updated successfully, but these errors were encountered:
zschumacher
changed the title
Bugs when passing a query to execute that is a psycopg2 SQL object
Bugswhen passing a query to execute that is a psycopg2 SQL object
Sep 21, 2020
zschumacher
changed the title
Bugswhen passing a query to execute that is a psycopg2 SQL object
Bug when passing a query to execute that is a psycopg2 SQL object
Sep 21, 2020
When you pass a
SQL
object frompsycopg2.sql
, we run into an unexpected error in theis_sql_dirty
function. When we hit the line that tries to dosql.lower()
, we may have passed in aSQL
object, resulting inpackages/cacheops/transaction.py", line 113, in is_sql_dirty sql = sql.lower() AttributeError: 'Composed' object has no attribute 'lower'
Perhaps it would be reasonable to add a block such as
Would love other thoughts on this.
The text was updated successfully, but these errors were encountered: