Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
e9346b99
Commit
e9346b99
authored
Feb 14, 2011
by
Max Kanat-Alexander
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove tabs and fix some formatting in Bugzilla::DB::Pg.
https://bugzilla.mozilla.org/show_bug.cgi?id=616981
parent
ff3ae632
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
Pg.pm
Bugzilla/DB/Pg.pm
+4
-4
No files found.
Bugzilla/DB/Pg.pm
View file @
e9346b99
...
...
@@ -198,10 +198,10 @@ sub sql_string_until {
# PostgreSQL does not permit a negative substring length; therefore we
# use CASE to only perform the SUBSTRING operation when $substring can
# be found withing $string.
return
"CASE WHEN "
.
$self
->
sql_position
(
$substring
,
$string
)
.
" != 0 THEN SUBSTRING($string FROM 1 FOR
"
.
$self
->
sql_position
(
$substring
,
$string
)
.
"
- 1)"
.
" ELSE $string END"
;
my
$position
=
$self
->
sql_position
(
$substring
,
$string
);
return
"CASE WHEN $position != 0
"
.
" THEN SUBSTRING($string FROM 1 FOR $position
- 1)"
.
" ELSE $string END"
;
}
# Tell us whether or not a particular sequence exists in the DB.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment