[MDEV-8618] DYNAMIC SQL in stored functions Created: 2015-08-14 Updated: 2015-10-31 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Mikhail Gavrilov | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 1 |
| Labels: | None | ||
| Description |
|
Will someday possible to use the DYNAMIC SQL into functions? Or MariaDB has fundamental architectural constraints for this? If possible, then this feature request that such feature came soon as possible. I would be much happier if can instead of this procedure:
write function:
Because i need calculate for several tariffs which appropriate to conditions, of course i can do it with cursor and temporary table, but solution with function I like more. |
| Comments |
| Comment by Sergei Golubchik [ 2015-10-28 ] |
|
There was a fundamental architectural constraint, right (lock manager had to know up front all tables that a function will possibly access). But as far as I understand that was fixed and now we can remove this restriction about dynamic SQL and stored functions. |