[MXS-1527] SELECT with session var is not supported Created: 2017-11-16 Updated: 2017-12-27 Resolved: 2017-12-27 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | readwritesplit |
| Affects Version/s: | 2.1.10 |
| Fix Version/s: | 2.1.13, 2.2.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Wagner Bianchi (Inactive) | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
[root@maxscale maxscale.cnf.d]# uname -r |
||
| Issue Links: |
|
||||||||
| Description |
|
Folks, Testing a simple SELECT with @@hostname var, I'm seeing a strange behavior when targeting the query to get executed using Maxscale. It's not getting executed and is pointing that SELECT with session data modification is not supported if configuration parameter use_sql_variables_in=all.
Adding the use_sql_variables_in=master to the services definition, I've got the same:
It's not checking that I added the use_sql_variables_in=master to service's definition? To have the same environment I'm using for tests, please, refer to https://jira.mariadb.org/browse/MXS-1526 |
| Comments |
| Comment by Johan Wikman [ 2017-12-27 ] |
|
The problem is that the statement is incorrectly classified as QUERY_TYPE_READ|QUERY_TYPE_GSYSVAR_WRITE although it should be classifed as QUERY_TYPE_READ|QUERY_TYPE_SYSVAR_READ. |