cvs: pear /DB/DB oci8.php

From: Date: Tue, 07 Oct 2003 12:13:44 +0000
Subject: cvs: pear /DB/DB oci8.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-13460@lists.php.net to get a copy of this message
cox Tue Oct 7 08:13:44 2003 EDT Modified files: /pear/DB/DB oci8.php Log: Fix Bug #73 [PATCH] OCI8 Prepare() does not raise SQL parse error Index: pear/DB/DB/oci8.php diff -u pear/DB/DB/oci8.php:1.13 pear/DB/DB/oci8.php:1.14 --- pear/DB/DB/oci8.php:1.13 Thu Sep 18 09:32:58 2003 +++ pear/DB/DB/oci8.php Tue Oct 7 08:13:44 2003 @@ -16,7 +16,7 @@ // | Author: James L. Pine <jlp@valinux.com> | // +----------------------------------------------------------------------+ // -// $Id: oci8.php,v 1.13 2003/09/18 13:32:58 cox Exp $ +// $Id: oci8.php,v 1.14 2003/10/07 12:13:44 cox Exp $ // // Database independent query interface definition for PHP's Oracle 8 // call-interface extension. @@ -349,7 +349,9 @@ $newquery .= $tokens[$i]; $this->last_query = $query; $newquery = $this->modifyQuery($newquery); - $stmt = @OCIParse($this->connection, $newquery); + if (!$stmt = @OCIParse($this->connection, $newquery)) { + return $this->oci8RaiseError(); + } $this->prepare_types[$stmt] = $types; $this->manip_query[(int)$stmt] = DB::isManip($query); return $stmt;

« previous php.pear.cvs (#13460) next »