You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since merging #50044, it's no longer possible to specify the transaction isolation level for a (MySQL) connection. The code now bundles all the "SET" statements, but that causes wrong syntax:
Which causes the following exception: SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ', NAMES 'utf8mb4' COLLATE 'utf8mb4_unicode_ci', SESSION sql_mode='ONLY_FULL_GROU' at line 1
The transaction isolation level must apparently be set in a separate statement to actually work.
Steps To Reproduce
Configure a (MySQL) database with isolation level, like:
Laravel Version
11.0.7
PHP Version
8.3.3
Database Driver & Version
MySQL 8.0+
Description
Since merging #50044, it's no longer possible to specify the transaction isolation level for a (MySQL) connection. The code now bundles all the "SET" statements, but that causes wrong syntax:
Which causes the following exception:
SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ', NAMES 'utf8mb4' COLLATE 'utf8mb4_unicode_ci', SESSION sql_mode='ONLY_FULL_GROU' at line 1
The transaction isolation level must apparently be set in a separate statement to actually work.
Steps To Reproduce
Configure a (MySQL) database with isolation level, like:
and run any command using that connection, like
User::connection('replica')->all()
.The text was updated successfully, but these errors were encountered: