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
a46f353a
Commit
a46f353a
authored
Mar 10, 2005
by
mkanat%kerio.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 285532: GetSelectableProducts cannot run on PostgreSQL when classifications are enabled
Patch By Max Kanat-Alexander <mkanat@kerio.com> r=Tomas.Kopal, a=justdave
parent
71a8f7bf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
globals.pl
globals.pl
+2
-2
No files found.
globals.pl
View file @
a46f353a
...
...
@@ -509,7 +509,8 @@ sub GetSelectableProducts {
my
$extra_sql
=
$by_id
?
"id, "
:
""
;
my
$extra_from_sql
=
$by_classification
?
", classifications"
:
""
;
my
$extra_from_sql
=
$by_classification
?
" INNER JOIN classifications"
.
" ON classifications.id = products.classification_id"
:
""
;
my
$query
=
"SELECT $extra_sql products.name "
.
"FROM products $extra_from_sql "
.
...
...
@@ -527,7 +528,6 @@ sub GetSelectableProducts {
}
$query
.=
"WHERE group_id IS NULL "
;
if
(
$by_classification
)
{
$query
.=
"AND classifications.id = products.classification_id "
;
$query
.=
"AND classifications.name = "
;
$query
.=
SqlQuote
(
$by_classification
)
.
" "
;
}
...
...
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