View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0011282 | mantisbt | db oracle | public | 2009-12-11 13:29 | 2014-09-23 18:05 |
Reporter | bob | Assigned To | dregad | ||
Priority | normal | Severity | major | Reproducibility | sometimes |
Status | closed | Resolution | fixed | ||
Fixed in Version | 1.2.6 | ||||
Summary | 0011282: For 1.3.0 - ORA-00918: column ambiguously defined for the query: SELECT DISTINCT m_bug_tbl.* | ||||
Description | Getting error from Oracle about ambiguously defined columns | ||||
Steps To Reproduce | Probably only occurs with Oracle, but is due to the duplication of column names in the select clause. | ||||
Tags | No tags attached. | ||||
Attached Files | filter_api.php.patch (312 bytes)
--- mantisbt-mantisbt-2521b5a/core/filter_api.php Tue Apr 5 10:13:30 2011 +++ PROD_VER/core/filter_api.php Mon Jul 25 12:14:22 2011 @@ -1083,8 +1083,6 @@ ); $t_select_clauses = array( "$t_bug_table.*", - "$t_bug_table.last_updated", - "$t_bug_table.date_submitted", ); $t_join_clauses = array(); | ||||
Suggested Fix is: Replace with |
|
Probably a better fix is just to comment out the last 2 columns listed, ie: Line 1074 of filter_api.php Change to "$t_bug_table.last_updated", |
|
Patch against 1.2.5 attached. |
|
Paul commented in IRC that this fix may break MS SQL - I have no way of testing that. It works on MySQL, and I can execute the query on Oracle (but I don't run Mantis on that so I can't fully test - I assume that the 2 people who proposed the patch did test). If anyone has an issue with MS SQL, please update this. |
|
Marking as 'acknowledged' not resolved/closed to track that change gets ported to master-2.0.x branch |
|
MantisBT currently supports Mysql and has support for other database engines. The support for other databases is known to be problematic. Having implemented the current database layer into Mantis 10 years ago, I'm currently working on replacing the current layer. If you are interested in using Mantis with non-mysql databases - for example, Oracle, PGSQL or MSSQL, and would be willing to help out testing the new database layer, please drop me an email at paul@mantisforge.org In the meantime, I'd advise running Mantis with Mysql Only to avoid issues. Thanks |
|
MantisBT: master-1.2.x 817a8341 2011-07-26 01:03 Details Diff |
Fix 0011282: Oracle error ORA-00918 column ambiguously defined Filter API does a SELECT DISTINCT $t_bug_table.*; before this patch the fields list also included 2 additional columns; MySQL had no problem with that, but Oracle gave the above-mentioned error. |
Affected Issues 0011282 |
|
mod - core/filter_api.php | Diff File | ||
MantisBT: master 0b3b459c 2011-07-26 01:03 Details Diff |
Fix 0011282: Oracle error ORA-00918 column ambiguously defined Filter API does a SELECT DISTINCT $t_bug_table.*; before this patch the fields list also included 2 additional columns; MySQL had no problem with that, but Oracle gave the above-mentioned error. |
Affected Issues 0011282 |
|
mod - core/filter_api.php | Diff File |