Bug #116950 | Router Read-Write splitting config causes PHP RSET_HEADER error | ||
---|---|---|---|
Submitted: | 11 Dec 2024 16:11 | Modified: | 24 Jan 22:06 |
Reporter: | Keith Hollman | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Router | Severity: | S3 (Non-critical) |
Version: | 8.4.3 | OS: | Any (4.18.0-553.22.1.el8_10.x86_64) |
Assigned to: | CPU Architecture: | Any |
[11 Dec 2024 16:11]
Keith Hollman
[12 Dec 2024 15:34]
MySQL Verification Team
Hi Keith, I do not have drupal handy, can you, while I setup some testing env, try to extract what query was sent to router and what went to what side. Is this error on the read or write side of the router?
[13 Dec 2024 8:51]
Jan Kneschke
The problem can be reproduced without Drupal by: 1. connect with a mysql-client to the read-write port of the router 2. SET sql_mode="ANSI_QUOTES"; 3. INSERT something; 4. SELECT something; The error-msg in the Router gets logged at SELECT.
[13 Dec 2024 9:13]
MySQL Verification Team
Thanks, we verified the report.
[16 Dec 2024 10:13]
Keith Hollman
Should the eact code be needed, it's here: https://git.drupalcode.org/project/drupal/-/blob/10.3.x/core/lib/Drupal/Core/Database/Stat... Thanks.
[16 Dec 2024 11:07]
Jan Kneschke
The issue is triggered which by: SET sql_mode="ANSI_QUOTES"; which is set by https://www.drupal.org/node/344575
[24 Jan 22:06]
Philip Olson
Posted by developer: Fixed as of the upcoming MySQL Router 8.4.5 and 9.3.0 releases, and here's the proposed changelog entry from the documentation team for review: Enabling the ANSI_QUOTES sql_mode was not allowed with Read-Write splitting enabled, and queries with it enabled would log an 'Unknown column' warning. Thank you for the bug report.