View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0020483 | mantisbt | db postgresql | public | 2016-01-06 18:54 | 2016-06-12 00:42 |
Reporter | cproensa | Assigned To | cproensa | ||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Product Version | 1.3.0-rc.1 | ||||
Target Version | 1.3.0-rc.2 | Fixed in Version | 1.3.0-rc.2 | ||
Summary | 0020483: Error 401 with PostgreSQL manage_user_page | ||||
Description | Using PostgreSQL, on manage_user_page The query fails with attached message | ||||
Additional Information |
| ||||
Tags | No tags attached. | ||||
MantisBT: master 4192d571 2016-01-07 10:13 Committer: dregad Details Diff |
Fix pgsql query error manage_user_page Due to pgsql having positional parameters in parametrized queries, the page is throwing an error in some combination of conditions. The error is caused by the reutilization of a prepared WHERE condition in a string from previous query. In the new query, a db_param() call is issued, which has the parameter reset to 1 (returning "$1"). Then, the resulting query string contains two "$1" parameters for different values. With this commit, the query build code is cleaned to avoid said situation. Fixes 0020483 Signed-off-by: Damien Regad <dregad@mantisbt.org> |
Affected Issues 0020483 |
|
mod - manage_user_page.php | Diff File |