Mantis - Quercus
|
|||||
Viewing Issue Advanced Details | |||||
|
|||||
ID: | Category: | Severity: | Reproducibility: | Date Submitted: | Last Update: |
4378 | major | always | 02-07-11 09:12 | 08-30-11 07:45 | |
|
|||||
Reporter: | geleont | Platform: | |||
Assigned To: | OS: | ||||
Priority: | normal | OS Version: | |||
Status: | new | Product Version: | 4.0.14 | ||
Product Build: | Resolution: | open | |||
Projection: | none | ||||
ETA: | none | Fixed in Version: | |||
|
|||||
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: | |||||
Relationships | |||||
Attached Files: |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|