View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0013363 | mantisbt | db mssql | public | 2011-09-30 12:19 | 2014-09-23 18:05 |
Reporter | rfoster | Assigned To | rombert | ||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Windows IIS Server | OS | Windows Server | OS Version | 2008 |
Product Version | 1.2.8 | ||||
Target Version | 1.2.9 | Fixed in Version | 1.2.9 | ||
Summary | 0013363: Application Failure when trying to select an issue | ||||
Description | With a new installation using SQL Server 2008 with the new Microsoft sqlsrv database plugin (patches from new issues applied) When selecting created issues I get this error when there are no Tags created through the Management interface: APPLICATION ERROR 0000401 | ||||
Steps To Reproduce |
| ||||
Tags | No tags attached. | ||||
Attached Files | Correct-tag-retrieval-on-SQL-Server-when-no-tags-are.patch (847 bytes)
From 4184a9e0da19236c1fb855e5944e90011f09f779 Fri, 30 Sep 2011 21:03:29 +0300 From: Robert Munteanu <robert.munteanu@gmail.com> Date: Fri, 30 Sep 2011 21:02:52 +0300 Subject: [PATCH] Correct tag retrieval on SQL Server when no tags are defined Fix #13363 : Application Failure when trying to select an issue diff --git a/core/tag_api.php b/core/tag_api.php index fd31424..4cd1b3e 100644 --- a/core/tag_api.php +++ b/core/tag_api.php @@ -421,6 +421,11 @@ while( $row = db_fetch_array( $result ) ) { $t_subquery_results[] = (int)$row; } + + if ( count ( $t_subquery_results ) == 0 ) { + return array(); + } + $query = "SELECT id, name, description FROM $t_tag_table WHERE id IN ( " . implode( ', ', $t_subquery_results ) . ')'; } else { $query = "SELECT id, name, description FROM $t_tag_table WHERE id IN ( | ||||
Please apply the following patch and let me know if it fixed the issue. I do not have an SQL Server instance around to test. |
|
thats works (MS SQL Server2005) and I add another patch in the case , you add Tags |
|
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 47a2de44 2011-09-30 07:02 Details Diff |
Correct tag retrieval on SQL Server when no tags are defined Fix 0013363 : Application Failure when trying to select an issue |
Affected Issues 0013363 |
|
mod - core/tag_api.php | Diff File | ||
MantisBT: master-1.2.x 59b1fff9 2011-09-30 07:02 Details Diff |
Correct tag retrieval on SQL Server when no tags are defined Fix 0013363 : Application Failure when trying to select an issue |
Affected Issues 0013363 |
|
mod - core/tag_api.php | Diff File |