-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
MDEV-34316 Ignore the NOCOPY keyword in stored routine parameters when sql_mode=ORACLE #3517
Conversation
Hi @wong-github1, Unfortunately this is causing test failures, this is because the ALTER TABLE t1 MODIFY d DOUBLE DEFAULT 10, ALGORITHM=NOCOPY |
Hi @LinuxJedi (Andrew), Thank you so much in pointing out the error. I have just fixed it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for fixing that, I'll hand over to @abarkov for final review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hello @wong-github1! Thank you for your efforts.
For the ORACLE compatibility mode we have an compat/oracle suite. I think you can put your tests in the sp-param.test file in that suite.
Also I think we can avoid an extra switch in your ALTER TABLE fix. Can you please update it according to my suggestion?
Kind regards.
Hi @FooBarrior , |
…ne parameters During sql_mode=ORACLE, ignore the NOCOPY keyword in stored routine parameters. The optimization (pass-by-reference instead of pass-by-value) helping to avoid value copying will be done in a separate task when needed.
…ts into the compat/oracle suite, sp-param.test file. 2. Remove the added unit test file and result file. 3. Add type, Alter_info::enum_alter_table_algorithm, into the union. 4. Remove the extra switch case
8ccb721
to
443866c
Compare
Hello again @wong-github1! Our QA has found a bug within this patch: MDEV-35229. Can you please take a look? The bug is serious and the priority is high, so would be nice if you can take a look as soon as possible. If any questions, reach me out in MariaDB's zulip: Best regards Nikita |
Description
During sql_mode=ORACLE, ignore the NOCOPY keyword in stored routineparameters. The optimization (pass-by-reference instead of pass-by-value) helping to avoid value copying will be done in a separate task when needed.
Release Notes
Ignore the NOCOPY keyword in stored routine parameters when sql_mode=ORACLE
How can this PR be tested?
mysql-test/mtr sp-ignore_nocopy
Basing the PR against the correct MariaDB version
main
branch.PR quality check