|
[
Permalink
| « Hide
]
Roger Robins added a comment - 18/May/09 02:42 PM
I've attached the file I was trying to import to help reproduce the problem
This is the feedback from www.php.net
http://bugs.php.net/?id=48324&edit=2 ID: 48324 Passing a -1 length to the oci_bind_by_name call allocates only enough storage for the current size of $id at the time of the call. A size of 1 is used for a null. Instead of -1, pass a length big enough to hold your largest expected return value. Previous Comments: [2009-05-19 01:48:11] roger dot robins at det dot nsw dot edu dot au Description: Code: $this->query_start($sql, $params, SQL_QUERY_INSERT); $stmt = $this->parse_query($sql); $descriptors = $this->bind_params($stmt, $params, $table); if ($returning) {
oci_bind_by_name($stmt, ":oracle_id", $id, -1, SQLT_LNG); } $result = oci_execute($stmt); $this->free_descriptors($descriptors); |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||