mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
parser cleanup: don't store field properties in LEX, use Create_field directly
length/dec/charset are still in LEX, because they're also used
for CAST and dynamic columns.
also
1. fix "MDEV-7041 COLLATION(CAST('a' AS CHAR BINARY)) returns a wrong result"
2. allow BINARY modifier in stored function RETURN clause
3. allow "COLLATION without CHARSET" in SP/SF (parameters, RETURN, DECLARE)
4. print correct variable name in error messages for stored routine parameters
This commit is contained in:
@@ -1411,7 +1411,7 @@ end|
|
||||
ERROR 0A000: Not allowed to return a result set from a function
|
||||
drop function if exists bug20701;
|
||||
create function bug20701() returns varchar(25) binary return "test";
|
||||
ERROR 42000: This version of MariaDB doesn't yet support 'return value collation'
|
||||
drop function bug20701;
|
||||
create function bug20701() returns varchar(25) return "test";
|
||||
drop function bug20701;
|
||||
create procedure proc_26503_error_1()
|
||||
|
||||
Reference in New Issue
Block a user