[MDEV-23819] syntax error EXECUTE IMMEDIATE 'use ?' USING @current_database Created: 2020-09-25 Updated: 2020-09-25 Resolved: 2020-09-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements |
| Affects Version/s: | 10.2.33 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Daniel Black | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Probably an abuse of execute immediate:
If it will never work, just note the extent and we'll get it documents |
| Comments |
| Comment by Sergei Golubchik [ 2020-09-25 ] |
|
This is documented here: https://mariadb.com/kb/en/prepare-statement/
and you cannot use expressions in USE, for example USE CONCAT('te', 'st') will not work. |