View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002006 | mantisbt | sql | public | 2002-05-21 07:11 | 2003-12-13 04:50 |
| Reporter | rcrespo | Assigned To | aarjona | ||
| Priority | normal | Severity | feature | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | alpha | OS | FreeBSD/Alpha | OS Version | 4.4-RELEASE |
| Product Version | 0.17.3 | ||||
| Summary | 0002006: when searching and you type in a username you get a sql query error | ||||
| Description | when searching and you type in a username into the search field it gives you a sql error. | ||||
| Steps To Reproduce | login into mantis | ||||
| Additional Information | ERROR: FAILED QUERY: SELECT COUNT( DISTINCT ( mantis_bug_table.id ) ) as count FROM mantis_bug_table, mantis_bug_text_table LEFT JOIN mantis_bugnote_table ON mantis_bugnote_table.bug_id = mantis_bug_table.id LEFT JOIN mantis_bugnote_text_table ON mantis_bugnote_text_table.id = mantis_bugnote_table.bugnote_text_id WHERE project_id='0000003' AND reporter_id='0000035' AND status<>'90' AND ((summary LIKE '%rcrespo%') OR (description LIKE '%rcrespo%') OR (steps_to_reproduce LIKE '%rcrespo%') OR (additional_information LIKE '%rcrespo%') OR (mantis_bug_table.id LIKE '%rcrespo%') OR (mantis_bugnote_text_table.note LIKE '%rcrespo%')) AND mantis_bug_text_table.id = mantis_bug_table.bug_text_id : | ||||
| Tags | No tags attached. | ||||
| has duplicate | 0002003 | closed | prescience | Searching with Viewer -> Updater Accounts Causes Error |
| has duplicate | 0002018 | closed | aarjona | ERROR Screen when filtering 'Reporter' and 'Search'. |
| has duplicate | 0002027 | closed | aarjona | Failed Query when entering search term and clicking 'Apply Filter' |
| has duplicate | 0002038 | closed | aarjona | Usage of word 'quot' in Search field. |
|
I tried it here and got no errors. May have to do with differences in MySQL versions. |
|
|
here's my setup mysql Ver 11.15 Distrib 3.23.42, for -freebsd4.4 (alpha) FreeBSD/Alpha 4.4-Release |
|
|
further observation reveals that this happens only with viewer, reporter and updater accounts. I'll try to work out a fix tonight |
|
|
ive seen it happen with developer and administrator as well. |
|
|
just noticed that in my case the ambiguity was because of a different column (view_state). However I believe both symptoms are solved with the same fix. |
|
|
This is the same as Bug 0002003 |
|
|
Go ahead and use the table qualifiers unless you find an easier fix. |
|
|
fixed in CVS. edited on: 05-27 14:36 |
|
|
if it's really fixed in cvs maybe the demo should be updated. i just got the error from bug 0002003 using the demo: ERROR: FAILED QUERY: SELECT DISTINCT( mantis_bug_table.id ) as count FROM mantis_bug_table, mantis_bug_text_table LEFT JOIN mantis_bugnote_table ON mantis_bugnote_table.bug_id = mantis_bug_table.id LEFT JOIN mantis_bugnote_text_table ON mantis_bugnote_text_table.id = mantis_bugnote_table.bugnote_text_id WHERE project_id='0000002' AND (view_state='10' OR (view_state='50' AND reporter_id='0000006')) AND status<>'90' AND category='penguins' AND ((summary LIKE '%well%') OR (description LIKE '%well%') OR (steps_to_reproduce LIKE '%well%') OR (additional_information LIKE '%well%') OR (mantis_bug_table.id LIKE '%well%') OR (mantis_bugnote_text_table.note LIKE '%well%')) AND mantis_bug_text_table.id = mantis_bug_table.bug_text_id : |
|
|
I don't think this is an isssue anymore |
|