#26991 closed Bug (fixed)
Check for SQL_AUTO_IS_NULL fails on special database connections
Reported by: | Markus Gerards | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | 1.10 |
Severity: | Release blocker | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
With #24675 a check for SQL_AUTO_IS_NULL is introduced in initializing a MySQL database connection.
I have some special use case here in which this causes an error. I'm connecting via MySQL to an sphinxsearch database. It basically uses the MySQL query language but has some special features. cursor.execute('SELECT @@SQL_AUTO_IS_NULL')
returns None
and therefore is_sql_auto_is_null_enabled
in features.py
is failing.
I think a simple check if cursor.fetchone()
has a result would solve the problem.
Change History (4)
follow-up: 2 comment:1 by , 8 years ago
Has patch: | set |
---|---|
Severity: | Normal → Release blocker |
Triage Stage: | Unreviewed → Accepted |
comment:2 by , 8 years ago
Note:
See TracTickets
for help on using tickets.
Does this PR work for you? I'm not sure if a test is feasible.