Commit 1ab168bd authored by Carsten  Rose's avatar Carsten Rose
Browse files

Fixes #9089: Move Stored Procedure to SECURITY=INVOKER

parent 78e2faa5
Pipeline #2350 passed with stages
in 2 minutes and 48 seconds
......@@ -6,6 +6,7 @@ DROP FUNCTION IF EXISTS GETFUNCTIONSHASH;
CREATE FUNCTION GETFUNCTIONSHASH()
RETURNS TEXT
DETERMINISTIC
SQL SECURITY INVOKER
BEGIN
RETURN '%%FUNCTIONSHASH%%';
END;
......@@ -20,6 +21,7 @@ DROP FUNCTION IF EXISTS QMORE;
CREATE FUNCTION QMORE(input TEXT, maxlen INT)
RETURNS TEXT
DETERMINISTIC
SQL SECURITY INVOKER
BEGIN
DECLARE output TEXT;
IF maxlen < 1 THEN
......@@ -43,6 +45,7 @@ DROP FUNCTION IF EXISTS QBAR;
CREATE FUNCTION QBAR(input TEXT)
RETURNS TEXT
DETERMINISTIC
SQL SECURITY INVOKER
BEGIN
DECLARE output TEXT;
SET output = REPLACE(input, '|', '\\|');
......@@ -58,6 +61,7 @@ DROP FUNCTION IF EXISTS QNL2BR;
CREATE FUNCTION QNL2BR(input TEXT)
RETURNS TEXT
DETERMINISTIC
SQL SECURITY INVOKER
BEGIN
DECLARE output TEXT;
SET output = REPLACE(REPLACE(input, CHAR(13), ''), CHAR(10), '<br>');
......@@ -73,6 +77,7 @@ DROP FUNCTION IF EXISTS QIFEMPTY;
CREATE FUNCTION QIFEMPTY(input TEXT, token TEXT)
RETURNS TEXT
DETERMINISTIC
SQL SECURITY INVOKER
BEGIN
DECLARE output TEXT;
SET output = IF(input = '', token, input);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment