Closed
Bug 314795
Opened 19 years ago
Closed 19 years ago
[Oracle] SQL query in query.cgi is missing a space
Categories
(Bugzilla :: Query/Bug List, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.22
People
(Reporter: lance.larsh, Assigned: lance.larsh)
References
Details
Attachments
(1 file)
598 bytes,
patch
|
goobix
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041119
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20041119
The query for retrieving the logged in user's named queries (around line 393 of query.cgi), created by concatenating several Perl strings, is:
"SELECT name FROM namedqueries WHERE userid = ? and name != ?ORDER BY name"
Note that there is no whitespace between the second "?" and "ORDER BY". This causes a SQL parsing error when running on Oracle, preventing the Search page from being displayed.
Reproducible: Always
Steps to Reproduce:
1. Log into a Bugzilla installation using an Oracle database.
2. Click the "Search" action link in the page footer.
Actual Results:
Instead of showing the Search page, the browser shows:
Software error:
DBD::Oracle::db selectcol_arrayref failed:
ORA-00933: SQL command not properly ended
(DBD ERROR: error possibly near <*> indicator at char 70 in
'SELECT name FROM namedqueries WHERE userid = :p1 AND name != :p2ORDER <*>BY name')
Expected Results:
The Search page should appear.
Updated•19 years ago
|
Assignee: query-and-buglist → lance.larsh
Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee | ||
Comment 1•19 years ago
|
||
Attachment #201644 -
Flags: review?(bugreport)
Updated•19 years ago
|
Attachment #201644 -
Flags: review+
Updated•19 years ago
|
Attachment #201644 -
Flags: review?(bugreport)
Updated•19 years ago
|
Status: NEW → ASSIGNED
Flags: approval?
Target Milestone: --- → Bugzilla 2.22
Updated•19 years ago
|
Flags: approval? → approval+
Comment 2•19 years ago
|
||
Wow, I'm surprised that ever worked. :-)
Comment 3•19 years ago
|
||
Checking in query.cgi;
/cvsroot/mozilla/webtools/bugzilla/query.cgi,v <-- query.cgi
new revision: 1.154; previous revision: 1.153
done
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•