Details
-
Task
-
Status: Open (View Workflow)
-
Major
-
Resolution: Unresolved
-
None
Description
Variable declaration works:
DECLARE
|
cDate VARCHAR2(10) := '2011-10-30'; |
BEGIN
|
NULL; |
END; |
/
|
Constant declaration does NOT:
DECLARE
|
-> cDate CONSTANT VARCHAR2(10) := '2011-10-30'; |
-> BEGIN |
-> NULL; |
-> END; |
-> /
|
ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VARCHAR2(10) := '2011-10-30'; |
BEGIN
|
NULL;
|
END' at line 2 |
See also: MDEV-10591
Attachments
Issue Links
- blocks
-
MDEV-34569 Oracle compatibility project 4
-
- Open
-
- is part of
-
MDEV-10872 Providing compatibility Oracle database
-
- Open
-
Activity
Field | Original Value | New Value |
---|---|---|
Link |
This issue blocks |
Fix Version/s | 10.3 [ 22126 ] | |
Assignee | Alexander Barkov [ bar ] |
Affects Version/s | 10.3.7 [ 23005 ] | |
Environment | linux | |
Issue Type | Bug [ 1 ] | Task [ 3 ] |
Description |
Variable declaration works:
DECLARE cDate VARCHAR2(10) := '2011-10-30'; BEGIN NULL; END; / Constant declaration does NOT: DECLARE -> cDate CONSTANT VARCHAR2(10) := '2011-10-30'; -> BEGIN -> NULL; -> END; -> / ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VARCHAR2(10) := '2011-10-30'; BEGIN NULL; END' at line 2 See also: https://jira.mariadb.org/browse/MDEV-10591 |
Variable declaration works:
{code:sql} DECLARE cDate VARCHAR2(10) := '2011-10-30'; BEGIN NULL; END; / {code} Constant declaration does NOT: {code:sql} DECLARE -> cDate CONSTANT VARCHAR2(10) := '2011-10-30'; -> BEGIN -> NULL; -> END; -> / ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'VARCHAR2(10) := '2011-10-30'; BEGIN NULL; END' at line 2 {code} See also: |
Link |
This issue blocks |
Fix Version/s | 10.3 [ 22126 ] |
Summary | PL/SQL CONSTANT declaration is not supported | PL/SQL CONSTANT declarations |
Labels | pl/sql | Compatibility pl/sql |
Fix Version/s | 10.3 [ 22126 ] |
Fix Version/s | 10.4 [ 22408 ] |
Labels | Compatibility pl/sql | Compatibility Oracle pl/sql |
Fix Version/s | 10.3 [ 22126 ] | |
Fix Version/s | 10.4 [ 22408 ] | |
Assignee | Alexander Barkov [ bar ] |
Workflow | MariaDB v3 [ 87811 ] | MariaDB v4 [ 130850 ] |
Link | This issue is part of MDEV-10872 [ MDEV-10872 ] |
Link | This issue blocks MENT-2098 [ MENT-2098 ] |
Link | This issue blocks MDEV-34569 [ MDEV-34569 ] |