Views should use Database::getConnection()->databaseType() instead of Database::getConnection()->driver() (via db_driver()) to detect the database type. The former does not vary for different drivers connecting to the same database engine (for example mysql and mysql_optimized_for_me), whereas the later does.
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | 1353580-database-type-vs-driver.patch | 5.28 KB | damien tournoud |
Comments
Comment #1
damien tournoud commentedPatch for review.
Comment #2
dawehnerOh that's a nice trick, didn't knew that. The changes looks fine, but didn't tested it. Anyway committed it to 7.x-3.x Thanks!