[MDEV-19150] sql_mode="oracle" errors on create procedure AS Created: 2019-04-02 Updated: 2019-09-11 Resolved: 2019-09-11 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.3.14 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Manjot Singh (Inactive) | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | Compatibility, need_feedback | ||
| Description |
|
proc
error:
|
| Comments |
| Comment by Dmitry Tolpeko [ 2019-06-25 ] | |||||||||||||||||||||
|
manjot I was able to create such procedure. What is the issue?
| |||||||||||||||||||||
| Comment by Ralf Gebhardt [ 2019-07-15 ] | |||||||||||||||||||||
|
Hi manjot, tested with 10.4.6, works as expected. Please verify it again and add the effected version, if you still see issues. | |||||||||||||||||||||
| Comment by Manjot Singh (Inactive) [ 2019-07-15 ] | |||||||||||||||||||||
|
@Ralf This does not work in 10.3.
| |||||||||||||||||||||
| Comment by Ralf Gebhardt [ 2019-07-17 ] | |||||||||||||||||||||
|
manjot I tried it with the new 10.3.16, no problem. | |||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-09-10 ] | |||||||||||||||||||||
|
Don't forget to set DELIMITER properly:
| |||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-09-10 ] | |||||||||||||||||||||
|
By the way, there should not be a semicolon after NUMBER. It should be followed by BEGIN immediately. manjot, can you clarify please, what is the problem? | |||||||||||||||||||||
| Comment by Manjot Singh (Inactive) [ 2019-09-10 ] | |||||||||||||||||||||
|
This example with semi colon works in pl/sql. I believe this is from one of Thanks, On Mon, Sep 9, 2019, 7:47 PM Alexander Barkov (Jira) <jira@mariadb.org> | |||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-09-10 ] | |||||||||||||||||||||
|
manjot Sorry, the semicolon is OK. So this script works without problems in MariaDB:
Should we close the issue? | |||||||||||||||||||||
| Comment by Manjot Singh (Inactive) [ 2019-09-10 ] | |||||||||||||||||||||
| Comment by Alexander Barkov [ 2019-09-11 ] | |||||||||||||||||||||
|
I just tested with 10.3.14, this script works without problems:
You got a syntax error because you forgot the DELIMITER command before CREATE PROCEDURE. So this query fragment:
is interpreted by the "mysql" command line client as a separate statement. |