[MXS-2203] update with subquery route to slave Created: 2018-12-03 Updated: 2018-12-03 Resolved: 2018-12-03 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | qc_sqlite |
| Affects Version/s: | None |
| Fix Version/s: | 2.2.17 |
| Type: | Bug | Priority: | Major |
| Reporter: | dapeng huang | Assignee: | Johan Wikman |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
2.2.12 |
||
| Description |
|
Following query parsed as QUERY_OP_SELECT
|
| Comments |
| Comment by markus makela [ 2018-12-03 ] | ||||||||||||||||
|
This seems to have been fixed in one of the releases as it gets routed correctly in 2.2.17 but is wrong in 2.2.12. | ||||||||||||||||
| Comment by markus makela [ 2018-12-03 ] | ||||||||||||||||
|
The commit that fixes it is this:
This is was not an intentional fix to the current problem so it seems some statements are confused with SELECT ... FOR UPDATE and UPDATE .. SELECT. | ||||||||||||||||
| Comment by markus makela [ 2018-12-03 ] | ||||||||||||||||
|
Simplified query:
The problem seems to be with updates that have subqueries. | ||||||||||||||||
| Comment by Johan Wikman [ 2018-12-03 ] | ||||||||||||||||
|
This is fixed in MaxScale version 2.2.17. |