Allow MySQL sites to set the 'sql_mode' in the database

Created on 1 May 2023, about 1 year ago

Problem/Motivation

For MySQL databases is the 'sql_mode' set on every page request. This is an unnecessary database call and it makes Drupal a little bit slower than is needed.

Proposed resolution

Allow site owners to set the 'sql_mode' in the database with the command: SET GLOBAL sql_mode = 'ANSI,TRADITIONAL';. See: https://dev.mysql.com/doc/refman/8.0/en/sql-mode.html

Remaining tasks

See: πŸ› Use READ COMMITTED by default for MySQL transactions Fixed . The difference is that there an option is added and here is an option suppressed.

User interface changes

None.

API changes

None.

Data model changes

None.

Release notes snippet

None.

πŸ“Œ Task
Status

Active

Version

10.1 ✨

Component
MySQL driverΒ  β†’

Last updated 1 day ago

Created by

πŸ‡³πŸ‡±Netherlands daffie

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024