1
0
mirror of https://github.com/MariaDB/server.git synced 2026-10-23 18:49:29 +03:00

reserve PATH_SYM in the same way as NAMES_SYM

This commit is contained in:
Sergei Golubchik
2025-12-01 21:33:48 +01:00
parent 8b1ccf6e82
commit df23b05a9a
5 changed files with 3 additions and 27 deletions

View File

@@ -8802,15 +8802,6 @@ ordinality('1')
Warnings:
Note 1585 This function 'ordinality' has the same name as a native function
DROP FUNCTION ordinality;
CREATE OR REPLACE FUNCTION path(a VARCHAR(128)) RETURNS int RETURN LENGTH(a)=0;
Warnings:
Note 1585 This function 'path' has the same name as a native function
SELECT path('1');
path('1')
0
Warnings:
Note 1585 This function 'path' has the same name as a native function
DROP FUNCTION path;
CREATE OR REPLACE FUNCTION fast(a VARCHAR(128)) RETURNS int RETURN LENGTH(a)=0;
Warnings:
Note 1585 This function 'fast' has the same name as a native function

View File

@@ -9571,10 +9571,6 @@ CREATE OR REPLACE FUNCTION ordinality(a VARCHAR(128)) RETURNS int RETURN LENGTH(
SELECT ordinality('1');
DROP FUNCTION ordinality;
CREATE OR REPLACE FUNCTION path(a VARCHAR(128)) RETURNS int RETURN LENGTH(a)=0;
SELECT path('1');
DROP FUNCTION path;
CREATE OR REPLACE FUNCTION fast(a VARCHAR(128)) RETURNS int RETURN LENGTH(a)=0;
SELECT fast('1');
DROP FUNCTION fast;

View File

@@ -5102,10 +5102,7 @@ CREATE PROCEDURE sp1()
path:BEGIN
SELECT @x;
END//
ERROR 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 'path:BEGIN
SELECT @x;
END' at line 2
DROP PROCEDURE IF EXISTS sp1;
DROP PROCEDURE sp1;
CREATE PROCEDURE sp1()
precision:BEGIN
SELECT @x;

View File

@@ -4842,16 +4842,13 @@ DROP PROCEDURE IF EXISTS sp1;
delimiter //;
--error ER_PARSE_ERROR
CREATE PROCEDURE sp1()
path:BEGIN
SELECT @x;
END//
delimiter ;//
--disable_warnings
DROP PROCEDURE IF EXISTS sp1;
--enable_warnings
DROP PROCEDURE sp1;
delimiter //;
--error ER_PARSE_ERROR

View File

@@ -16292,7 +16292,6 @@ ident_cli_func:
| IDENT_QUOTED
| keyword_func_sp_var_and_label { $$= $1; }
| keyword_func_sp_var_not_label { $$= $1; }
| PATH_SYM { $$= $1; }
;
TEXT_STRING_sys:
@@ -16455,7 +16454,6 @@ keyword_ident:
%ifdef ORACLE
| TYPE_SYM
%endif
| PATH_SYM
;
keyword_sysvar_name:
@@ -16472,7 +16470,6 @@ keyword_sysvar_name:
| EXCEPTION_ORACLE_SYM
| IGNORED_SYM
| OFFSET_SYM
| PATH_SYM
;
keyword_set_usual_case:
@@ -16500,7 +16497,6 @@ non_reserved_keyword_udt:
| keyword_sysvar_type
| keyword_sp_var_and_label
| OFFSET_SYM
| PATH_SYM
;
/*
@@ -16638,6 +16634,7 @@ keyword_set_special_case:
| AUTHORIZATION_SYM
| ROLE_SYM
| PASSWORD_SYM
| PATH_SYM
;
keyword_sysvar_type:
@@ -19250,7 +19247,6 @@ keyword_sp_decl:
| FUNCTION_SYM
| WINDOW_SYM
| IGNORED_SYM
| PATH_SYM
;
opt_truncate_table_storage_clause:
@@ -19726,7 +19722,6 @@ keyword_sp_decl:
| keyword_verb_clause
| WINDOW_SYM
| IGNORED_SYM
| PATH_SYM
;
opt_truncate_table_storage_clause: