Anonymous | Login | Signup for a new account | 12-17-2024 11:31 PST |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
0002267 | [Quercus] | minor | always | 12-19-07 08:08 | 05-29-08 12:19 | ||||
Reporter | sergpro | View Status | public | ||||||
Assigned To | ferg | ||||||||
Priority | normal | Resolution | fixed | ||||||
Status | closed | Product Version | 3.1.4 | ||||||
Summary | 0002267: PDO bind problem | ||||||||
Description |
getting java.sql.SQLException: ORA-00911: invalid character exception for statement where bind is using -- example of issue <?php $pdo = new PDO("java:comp/env/jdbc/db"); $query = "Insert into table_web (CLICK_ID,CAMPAIGN_ID,WSESSION_ID,URL) values (?,?,?,?)"; $DummyValue='a'; $WebSessionID='1677631'; $WebURL='localhost8080'; $stid = $pdo->prepare( $query); $stid->bindValue( 1, $DummyValue); $stid->bindValue( 2, $DummyValue); $stid->bindValue( 3, $WebSessionID); $stid->bindValue( 4, $WebURL); $stid->execute() || die ('Error! ' . $stid->errorCode()); ?> -- but following code without binding works fine <?php $pdo = new PDO("java:comp/env/jdbc/db"); $query = "Insert into table_web (CLICK_ID,CAMPAIGN_ID,WSESSION_ID,URL) values ('a','a','1677631','localhost8080')"; $stid->execute() || die ('Error! ' . $stid->errorCode()); ?> |
||||||||
Additional Information | |||||||||
Attached Files | |||||||||
|
Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
29 total queries executed. 26 unique queries executed. |