- attached dbapi_str.patch
Truncate exceptions when there are many bound parameters
Issue #1413
resolved
When there is an exception with a query with a lot of bound parameters, all the parameters are displayed. Given that you could have thousands of parameters, the exceptions can become very very long.
Attached is a patch that fixes that, showing only the first two parameters when there are more than 10 parameters total. (Not sure if that's the best numbers, but seems reasonable to me)
Comments (4)
-
Account Deleted -
repo owner -
repo owner - changed status to resolved
-
repo owner - removed milestone
Removing milestone: 0.5.4 (automated comment)
- Log in to comment
patch for sqlalchemy.exc.DBAPIError.str