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
3c66da7a
Commit
3c66da7a
authored
5 years ago
by
Carsten Rose
Browse files
Options
Downloads
Patches
Plain Diff
F8806 Implement SQL Stored Procedure 'qnl2br()'.
parent
978c1fad
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!171
F8806 Implement SQL Stored Procedure 'qnl2br()'.
Pipeline
#2141
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
+17
-1
17 additions, 1 deletion
extension/Classes/Sql/function.sql
with
17 additions
and
1 deletion
extension/Classes/Sql/function.sql
+
17
−
1
View file @
3c66da7a
...
...
@@ -49,4 +49,20 @@ BEGIN
DECLARE
output
TEXT
;
SET
output
=
REPLACE
(
input
,
'|'
,
'
\\
|'
);
RETURN
output
;
END
;
\ No newline at end of file
END
;
###
#
#
QNL2BR
(
input
)
#
replaces
'|'
in
`input`
with
'
\|
'
#
DROP
FUNCTION
IF
EXISTS
QNL2BR
;
CREATE
FUNCTION
QNL2BR
(
input
TEXT
)
RETURNS
TEXT
DETERMINISTIC
BEGIN
DECLARE
output
TEXT
;
SET
output
=
REPLACE
(
REPLACE
(
input
,
CHAR
(
13
),
''
),
CHAR
(
10
),
'<br>'
);
RETURN
output
;
END
\ No newline at end of file
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