Issue #3218978 by effulgentsia, daffie, mcdruid, Wim Leers: MySQL driver...
Issue #3218978 by effulgentsia, daffie, mcdruid, Wim Leers: MySQL driver allows settings.php to remove ANSI_QUOTES from sql_mode, but doesn't work when it is
(cherry picked from commit cff1307c)