[MXS-1048] ShemaRouter can't handle backquoted database names Created: 2016-12-07 Updated: 2016-12-20 Resolved: 2016-12-13 |
|
| Status: | Closed |
| Project: | MariaDB MaxScale |
| Component/s: | schemarouter |
| Affects Version/s: | 2.0.2 |
| Fix Version/s: | 2.0.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Wade Rossmann | Assignee: | markus makela |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos7 x64 |
||
| Description |
|
It seems that SchemaRouter does not attempt to strip backquotes from database names, instead using the string as-is which fails to match databases that actually exist. For example: USE statements:
SHOW TABLES FROM statements:
As a note on testing this, the mysql CLI seems to intercept USE statements and issue what I assume is an API call to the server instead. This makes the statement successful regardless of backquoting, and I wasted quite a bit of time trying to decipher this behaviour. For reference, the above show up in the logs as:
|
| Comments |
| Comment by markus makela [ 2016-12-13 ] |
|
Backquoted database names are now properly processed. |
| Comment by Wade Rossmann [ 2016-12-20 ] |
|
You are the man now, dawg. |