| Anonymous | Login | Signup for a new account | 11-03-2025 22:15 PST | 
| 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 | ||||
| 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 | Platform | |||||
| Status | closed | OS | |||||||
| Projection | none | OS Version | |||||||
| ETA | none | Fixed in Version | 3.2.0 | Product Version | 3.1.4 | ||||
| Product Build | |||||||||
| 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()); ?>  | 
||||||||
| Steps To Reproduce | |||||||||
| Additional Information | |||||||||
| Attached Files | |||||||||
| 
 | 
|||||||||
| 	Mantis 1.0.0rc3[^]
	Copyright © 2000 - 2005 Mantis Group
	29 total queries executed. 26 unique queries executed.  |