-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Talili tickets #4431
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
talili-rsec
wants to merge
4
commits into
MariaDB:main
Choose a base branch
from
talili-rsec:talili-tickets
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Talili tickets #4431
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24e850b to
09d4bac
Compare
- MDEV-34327: System package SYS.DBMS_RANDOM Added the following procedures: - INITIALIZE - Initialize the seed - TERMINATE - Terminate the package Added the following functions: - VALUE - Get a random number greater than or equal to 0 and less than 1, with 38 digits to the right of the decimal point (38-digit precision) - RANDOM - Generate a random number The random number generator can be seeded with a constant value by calling the INITIALIZE procedure with the seed number.
09d4bac to
54839f9
Compare
- MDEV-34330: System package SYS.DBMS_UTILITY Added the following functions: - GET_TIME - Return a measure of current time in hundredths of a second - FORMAT_ERROR_BACKTRACE - Display the call stack at the point where an exception was raised, even if the procedure is called from an exception handler in an outer scope - FORMAT_ERROR_STACK - Format the current error stack Resulting line numbers of desired SQL statement lines in package routines are based on the line numbers of the "SHOW CREATE" command for the package body. Known limitation: Outputs similar to those of Oracle, in requesting for the strings not just from the stack's bottom function, but also those in the middle, are not accommodated. Output is always, as if the request is coming from the stack's bottom function.
- MDEV-34331: System package SYS.UTL_I18N The package is a set of services that provides additional globalization functionality. The ANY_CS character set was also implemented so that the character set set by "set names" command or the character set of the database as the character set of the variable set with ANY_CS, especially for the transliterate function. Added the following functions: - TRANSLITERATE - Perform script transliteration - RAW_TO_CHAR - Convert RAW data from a valid character set to a VARCHAR2 string in the database character set - STRING_TO_RAW - Convert a VARCHAR2 string to another valid character set and returns the result as RAW data
54839f9 to
60531e8
Compare
- MDEV-19635: System package SYS.DBMS_SQL This patch adds support for dynamic SQL to parse any data manipulation language (DML) or data definition language (DDL) statement using PL/SQL. Added the following functions: - OPEN_CURSOR - Open a new cursor - EXECUTE - Execute a given cursor Added the following procedures: - PARSE - Parse the given statement in the given cursor - CLOSE_CURSOR - Close the cursor when no longer needed for a session As of the moment, '1', corresponding to Oracle's NATIVE DBMS_SQL constant, as PARSE's procedure's (language_flag) 3rd argument, is the only one accepted.
60531e8 to
2ed0f32
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
External Contribution
All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
MDEV-34327
This patch is the implementation of Oracle’s DBMS_RANDOM package for sql_mode=ORACLE. The random number generator can be seeded with a constant value by calling the INITIALIZE procedure with the seed number.
The following functions were added for the ticket:
INITIALIZE - Initialize the seed
VALUE - Get a random number greater than or equal to 0 and less than 1, with 38 digits to the right of the decimal point (38-digit precision)
RANDOM - Generate a random number
TERMINATE – Terminate the package
MDEV-34330
This patch is the implementation of Oracle’s DBMS_UTILITY package for sql_mode=ORACLE.
The following functions were added for the ticket:
GET_TIME - Return a measure of current time in hundredths of a second
FORMAT_ERROR_BACKTRACE - Display the call stack at the point where an exception was raised, even if the procedure is called from an exception handler in an outer scope
FORMAT_ERROR_STACK - Format the current error stack
For the FORMAT_XXXX functions, resulting line numbers of SQL statement lines of interest, in package routines are based on the line numbers of the "SHOW CREATE" command for the package body.
TODOs:
The error stack formatting differs from Oracle's implementation. In Oracle, FORMAT_ERROR_STACK and FORMAT_ERROR_BACKTRACE can display output from any point in the call stack (bottom, middle, or top). This implementation always formats output as if the request originates from the bottom-most function in the stack, regardless of where the function is actually called from.
MDEV-34331
This patch is the implementation of Oracle’s UTL_I18N package for sql_mode=ORACLE. The package is a set of services that provides additional globalization functionality.
The ANY_CS character set was also implemented so that the character set set by "set names" command or the character set of the database as the character set of the variable set with ANY_CS, especially for the transliterate function.
The following functions were added for the ticket:
TRANSLITERATE - Perform script transliteration
RAW_TO_CHAR - Convert RAW data from a valid character set to a VARCHAR2 string in the database character set
STRING_TO_RAW - Convert a VARCHAR2 string to another valid character set and returns the result as RAW data
MDEV-19635
This patch adds support for dynamic SQL to parse any data manipulation language (DML) or data definition language (DDL) statement using PL/SQL.
The following functions were added for the ticket:
OPEN_CURSOR - Open a new cursor
PARSE - Parse the given statement in the given cursor
EXECUTE - Execute a given cursor
CLOSE_CURSOR - Close the cursor when no longer needed for a session
TODOs:
As of the moment, '1', corresponding to Oracle's NATIVE DBMS_SQL constant, as PARSE's procedure's (language_flag) 3rd argument, is the only one accepted.
Release Notes
How can this PR be tested?
If the changes are not amenable to automated testing, please explain why not and carefully describe how to test manually.
Basing the PR against the correct MariaDB version
mainbranch.PR quality check