mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-10411 Providing compatibility for basic PL/SQL constructs
Part 13: RETURN vs RETURNS in function definition: CREATE FUNCTION f1(a INT) RETURN INT ... Part 12: No parentheses if no arguments: CREATE FUNCTION f1 RETURN INT ...
This commit is contained in:
@@ -2230,7 +2230,10 @@ show_create_sp(THD *thd, String *buf,
|
||||
buf->append(')');
|
||||
if (type == TYPE_ENUM_FUNCTION)
|
||||
{
|
||||
buf->append(STRING_WITH_LEN(" RETURNS "));
|
||||
if (sql_mode & MODE_ORACLE)
|
||||
buf->append(STRING_WITH_LEN(" RETURN "));
|
||||
else
|
||||
buf->append(STRING_WITH_LEN(" RETURNS "));
|
||||
buf->append(returns, returnslen);
|
||||
}
|
||||
buf->append('\n');
|
||||
|
Reference in New Issue
Block a user