Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Commits
1ab168bd
Commit
1ab168bd
authored
5 years ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
Fixes #9089: Move Stored Procedure to SECURITY=INVOKER
parent
78e2faa5
No related branches found
No related tags found
No related merge requests found
Pipeline
#2350
passed
5 years ago
Stage: before
Stage: build
Stage: selenium
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
extension/Classes/Sql/function.sql
+5
-0
5 additions, 0 deletions
extension/Classes/Sql/function.sql
with
5 additions
and
0 deletions
extension/Classes/Sql/function.sql
+
5
−
0
View file @
1ab168bd
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment