[MDEV-5816] MySQL WL#4179 - Stored programs: validation of stored program statements Created: 2014-03-11 Updated: 2023-11-06 Resolved: 2023-07-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Fix Version/s: | 11.2.1 |
| Type: | Task | Priority: | Critical |
| Reporter: | Sergey Vojtovich | Assignee: | Dmitry Shulga |
| Resolution: | Fixed | Votes: | 2 |
| Labels: | Preview_11.2, upstream-fixed | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Test case for MySQL "WL#4179 - Stored programs: validation of stored program statements" fails in 10.0. Test diff attached. Please try to apply test case as is unless it is applicable. Changes introduced by the task
To invalidate current SP instruction on metadata change and force its re-parsing, the same approach that used for Prepared Statement is applied - an instance of the class Reprepare_observer installed before second and subsequent executions of SP instruction and in case underlying tables metadata be changed this fact will be notified to and SP instruction's statement be re-parsed. |
| Comments |
| Comment by Sergey Vojtovich [ 2014-03-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Additional coverage for WL#4179 attached. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2014-03-18 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
It involves a lot of SP code refactoring so moved to 10.1. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-06-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
We have several bugs which depends on this, so I have risen priority and put version here. | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2018-07-03 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
f832c661e637b6725e4af3f20c5a458757d1ca3b a1b500f3b1b5f945f41b457301fe12ec4e68a131 2007d5060786552e191abe0933a22ef978d2b91a 381346992345c6ea7bc94864b8f5b8a16265489d -078166b94c1ca3f0f00df5f3724cf211c6e3ed58 | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2019-05-26 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
it looks like we need: 1.1) the class should contain:
1.2) how to make it parsed in the instruction memory? (probably impossible) above needs discussion | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2019-05-27 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Parametric cursors already has its own arena. Probably it is possible to switch arenas for each instruction as lex switched | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dmitry Shulga [ 2022-03-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Current status of the task:
| |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dmitry Shulga [ 2022-06-15 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Updated status of the task:
| |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dmitry Shulga [ 2022-09-20 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Updated status of the task:
| |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dmitry Shulga [ 2023-03-16 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
Branch for review is bb-11.0- | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Oleksandr Byelkin [ 2023-06-01 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
see my e-main with only 2 issues | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Dmitry Shulga [ 2023-06-14 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
The branch bb-11.2- | |||||||||||||||||||||||||||||||||||||||||||||||
| Comment by Ramesh Sivaraman [ 2023-07-19 ] | |||||||||||||||||||||||||||||||||||||||||||||||
|
okay to push |