[MDEV-6955] SET STATEMENT tx_isolation = FOR ... inside a transaction is meaningless and cannot have any effect, but is allowed Created: 2014-10-27 Updated: 2015-02-02 Resolved: 2014-10-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements |
| Affects Version/s: | N/A |
| Fix Version/s: | 10.1.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Oleksandr Byelkin |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||
| Description |
|
Transaction isolation level cannot be changed inside a transaction. Unlike most session variables, session-level transaction properties, when they are modified, become effective from the next transaction. Thus, changing the value for a single statement inside a non-atomic transaction is meaningless and should be prohibited. Now it is not. Percona server works OK, it returns the expected error:
With MariaDB, the last set statement ... for select returns an empty set, which shows that the tx_isolation setting didn't work. With Percona server, the same query causes an error.
|
| Comments |
| Comment by Oleksandr Byelkin [ 2014-10-29 ] |
|
The variable is prohibited in SET STATEMENT for now. |