Some basic datatypes and functions in oracle compatibility mode do not work (MDEV-19162)

[MDEV-20134] sql_mode="oracle" does not support keyword "ENABLE" Created: 2019-07-23  Updated: 2024-01-12

Status: Open
Project: MariaDB Server
Component/s: None
Affects Version/s: 10.3.13
Fix Version/s: None

Type: Technical task Priority: Major
Reporter: Manjot Singh (Inactive) Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: Compatibility


 Description   

MariaDB [test]> set sql_mode='ORACLE';
Query OK, 0 rows affected (0.000 sec)
 
MariaDB [test]> CREATE TABLE "BANANA_FOSTER"
    ->    (    "BANANA_ID" NUMBER(10,0) NOT NULL ENABLE,
    ->     "FOSTER_ID" NUMBER(10,0) NOT NULL ENABLE,
    ->     "DESC" VARCHAR2(100 BYTE) NOT NULL ENABLE,
    ->     "SITE_ID" NUMBER(10,0) NOT NULL ENABLE,
    ->     "CREATION_ID" NUMBER(10,0) NOT NULL ENABLE,
    ->     "CREATION_DATE" TIMESTAMP (6) NOT NULL ENABLE
    ->    )  ;
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 'ENABLE,
    "FOSTER_ID" NUMBER(10,0) NOT NULL ENABLE,
    "DESC" VARCHAR2(100 ' at line 2



 Comments   
Comment by Alexander Barkov [ 2019-09-11 ]

The "Estimated" field includes:

  • Adding the syntax
  • Storing ENABLE/DISABLE (and NONE) in the FRM file
  • SHOW CREATE TABLE and I_S tables
  • Disabling a constraint if DISABLE is specified
Generated at Thu Feb 08 08:57:05 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.