[MDEV-32101] CREATE PACKAGE [BODY] for sql_mode=DEFAULT Created: 2023-09-05 Updated: 2024-02-08 Resolved: 2023-12-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Stored routines |
| Fix Version/s: | 11.4.1 |
| Type: | New Feature | Priority: | Critical |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Preview_11.4 | ||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Description |
|
Let's allow the CREATE PACKAGE [BODY] statement in sql_mode=DEFAULT. It will work almost like the same statement for sql_mode=ORACLE, but will use SQL/PSM dialect instead of PL/SQL dialect in all parts of the statement, including:
For example:
Invocation examples:
In the future we can add CREATE MODULE on top of this work, for sql_mode=DB2, for IBM DB2 compatibility. |
| Comments |
| Comment by Alexander Barkov [ 2023-09-05 ] |
|
serg, can you please review this patch: |
| Comment by Alexander Barkov [ 2023-09-22 ] |
|
Hello serg, Here's a new patch version: https://github.com/MariaDB/server/commit/28deba0a6119c64020970e48b0994804d88688a1 Please have a look. |
| Comment by Ramesh Sivaraman [ 2023-12-11 ] |
|
bar Test looks good. |