yajra / pdo-via-oci8

PHP PDO_OCI functions via OCI8 extension
Other
88 stars 61 forks source link

Bind parameters should use named parameters indexed from 1. #57

Closed pavelkovar closed 6 years ago

pavelkovar commented 6 years ago

Named parameters should be indexed from 1 since PDOStatement::bindValue use 1-indexed position of the parameter.

yajra commented 6 years ago

This PR breaks my app with the following error on a fresh Laravel 5.7 installation.

oci_bind_by_name(): ORA-01036: illegal variable name/number (SQL: select * from (select * from "USERS" where "ID" = 2) where rownum = 1)

Thanks!