| Anonymous | Login | Signup for a new account | 10-29-2025 15:06 PDT |
| Main | My View | View Issues | Change Log | Docs |
| Viewing Issue Advanced Details [ Jump to Notes ] | [ View Simple ] [ Issue History ] [ Print ] | |||||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | |||||||
| 0004378 | [Quercus] | major | always | 02-07-11 09:12 | 08-30-11 07:45 | |||||||
| Reporter | geleont | View Status | public | |||||||||
| Assigned To | ||||||||||||
| Priority | normal | Resolution | open | Platform | ||||||||
| Status | new | OS | ||||||||||
| Projection | none | OS Version | ||||||||||
| ETA | none | Fixed in Version | Product Version | 4.0.14 | ||||||||
| Product Build | ||||||||||||
| Summary | 0004378: pq_query_params Return false, in case query is not SELECT | |||||||||||
| Description |
Minimal code to reproduce $res = pg_query_params($db,"INSERT INTO files (file, user, session_id, book) VALUES ($1,$2,$3,$4) RETURNING id", array("11222", "33g", "AAAS3wpSVE", "11", )); var_dump(pg_fetch_all($res)); should print id but returns false I think that caused by this lines of quercus code: if (!pstmt.execute(env)) return null; if (pstmt.getStatementType().equals("SELECT")) { PostgresResult result = new PostgresResult( env, null, pstmt.getResultSet(), null); conn.setResultResource(result); return result; } else { // XXX: ??? return type? return null; // return pstmt; } As we can see if query type is not SELECT method every time return null. |
|||||||||||
| Steps To Reproduce | ||||||||||||
| Additional Information | ||||||||||||
| Attached Files | ||||||||||||
|
|
||||||||||||
Issue History |
|||
| Date Modified | Username | Field | Change |
| 02-07-11 09:12 | geleont | New Issue | |
| 02-09-11 03:54 | geleont | Note Added: 0005030 | |
| 08-30-11 07:45 | tokeefe | Note Added: 0005481 | |
| Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
31 total queries executed. 27 unique queries executed. |