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; ...@@ -6,6 +6,7 @@ DROP FUNCTION IF EXISTS GETFUNCTIONSHASH;
CREATE FUNCTION GETFUNCTIONSHASH() CREATE FUNCTION GETFUNCTIONSHASH()
RETURNS TEXT RETURNS TEXT
DETERMINISTIC DETERMINISTIC
SQL SECURITY INVOKER
BEGIN BEGIN
RETURN '%%FUNCTIONSHASH%%'; RETURN '%%FUNCTIONSHASH%%';
END; END;
...@@ -20,6 +21,7 @@ DROP FUNCTION IF EXISTS QMORE; ...@@ -20,6 +21,7 @@ DROP FUNCTION IF EXISTS QMORE;
CREATE FUNCTION QMORE(input TEXT, maxlen INT) CREATE FUNCTION QMORE(input TEXT, maxlen INT)
RETURNS TEXT RETURNS TEXT
DETERMINISTIC DETERMINISTIC
SQL SECURITY INVOKER
BEGIN BEGIN
DECLARE output TEXT; DECLARE output TEXT;
IF maxlen < 1 THEN IF maxlen < 1 THEN
...@@ -43,6 +45,7 @@ DROP FUNCTION IF EXISTS QBAR; ...@@ -43,6 +45,7 @@ DROP FUNCTION IF EXISTS QBAR;
CREATE FUNCTION QBAR(input TEXT) CREATE FUNCTION QBAR(input TEXT)
RETURNS TEXT RETURNS TEXT
DETERMINISTIC DETERMINISTIC
SQL SECURITY INVOKER
BEGIN BEGIN
DECLARE output TEXT; DECLARE output TEXT;
SET output = REPLACE(input, '|', '\\|'); SET output = REPLACE(input, '|', '\\|');
...@@ -58,6 +61,7 @@ DROP FUNCTION IF EXISTS QNL2BR; ...@@ -58,6 +61,7 @@ DROP FUNCTION IF EXISTS QNL2BR;
CREATE FUNCTION QNL2BR(input TEXT) CREATE FUNCTION QNL2BR(input TEXT)
RETURNS TEXT RETURNS TEXT
DETERMINISTIC DETERMINISTIC
SQL SECURITY INVOKER
BEGIN BEGIN
DECLARE output TEXT; DECLARE output TEXT;
SET output = REPLACE(REPLACE(input, CHAR(13), ''), CHAR(10), '<br>'); SET output = REPLACE(REPLACE(input, CHAR(13), ''), CHAR(10), '<br>');
...@@ -73,6 +77,7 @@ DROP FUNCTION IF EXISTS QIFEMPTY; ...@@ -73,6 +77,7 @@ DROP FUNCTION IF EXISTS QIFEMPTY;
CREATE FUNCTION QIFEMPTY(input TEXT, token TEXT) CREATE FUNCTION QIFEMPTY(input TEXT, token TEXT)
RETURNS TEXT RETURNS TEXT
DETERMINISTIC DETERMINISTIC
SQL SECURITY INVOKER
BEGIN BEGIN
DECLARE output TEXT; DECLARE output TEXT;
SET output = IF(input = '', token, input); 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