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.

Comments

damien tournoud’s picture

Status: Active » Needs review
StatusFileSize
new5.28 KB

Patch for review.

dawehner’s picture

Status: Needs review » Fixed

Oh 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!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.