[MDEV-31751] SET @@tx_isolation=X behaves like SET TRANSACATION ISOLATION LEVEL X instead of SET SESSSION tx_isolation=X Created: 2023-07-20 Updated: 2023-10-10 |
|
| Status: | In Review |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.4.30 |
| Fix Version/s: | 11.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Daniel Black | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Both SET TRANSACTION ISOLATION and SET @@tx_isolation=X are OPT_DEFAULT, which gets processed like the former.
set @@tx_isolation= has a OPT_DEFAULT rather than an OPT_SESSION needed to follow the right path. |
| Comments |
| Comment by Elena Stepanova [ 2023-07-20 ] |
|
If it has been so all this time, I don't think you can suddenly change behavior of a variable in the old GA. |
| Comment by Daniel Black [ 2023-07-20 ] |
|
might be a way to fix it for @@transaction_isolation only in 11.2, better? |
| Comment by Daniel Black [ 2023-07-21 ] |
|
Making this a blocker as with a new replacement variable @@transaction_isolation not in GA, we can make that behave correctly and let the @@tx_isolation behave exactly like it did before (and leave a documentation task to update it). |
| Comment by Daniel Black [ 2023-07-21 ] |
|
https://github.com/MariaDB/server/pull/2709 - second commit only. |
| Comment by VAROQUI Stephane [ 2023-10-10 ] |
|
Since minor update of release < 11 also tracking of session variable tx-isolation stop working and is default in most drivers |
| Comment by Daniel Black [ 2023-10-10 ] |
|
The implementation https://github.com/MariaDB/server/pull/2707 probably would have avoided this, except it wasn't used. Please raise a regression blocker bug. |