summaryrefslogtreecommitdiff
path: root/sql/sql_yacc.yy
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2020-11-17 13:44:43 +0200
committerMonty <monty@mariadb.org>2020-11-26 19:13:37 +0200
commit3d56bea3ef5b6e9dcde8d9a32fa6e2bef268e9e0 (patch)
tree9f81a159e795b96fdc1f87473e7bd3970f299be7 /sql/sql_yacc.yy
parent55b27888005083d30339d6f3a2aee034121d8693 (diff)
downloadmariadb-git-3d56bea3ef5b6e9dcde8d9a32fa6e2bef268e9e0.tar.gz
Allow field_name NOT NULL ENABLED
This is for Oracle compatiblity. ENABLED is in Oracle the default case and just ensures that the NOT NULL constraints will be tested, which is also default in MariaDB
Diffstat (limited to 'sql/sql_yacc.yy')
-rw-r--r--sql/sql_yacc.yy7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/sql_yacc.yy b/sql/sql_yacc.yy
index c5864887677..ebea70065e8 100644
--- a/sql/sql_yacc.yy
+++ b/sql/sql_yacc.yy
@@ -6555,6 +6555,11 @@ opt_compressed:
| compressed { }
;
+opt_enable:
+ /* empty */ {}
+ | ENABLE_SYM { }
+ ;
+
compressed:
COMPRESSED_SYM opt_compression_method
{
@@ -6581,7 +6586,7 @@ compressed_deprecated_column_attribute:
;
asrow_attribute:
- not NULL_SYM
+ not NULL_SYM opt_enable
{
Lex->last_field->flags|= NOT_NULL_FLAG;
}