Source for file oci8.php
Documentation is available at oci8.php
// vim: set et ts=4 sw=4 fdm=marker:
// +----------------------------------------------------------------------+
// | PHP versions 4 and 5 |
// +----------------------------------------------------------------------+
// | Copyright (c) 1998-2004 Manuel Lemos, Tomas V.V.Cox, |
// | Stig. S. Bakken, Lukas Smith |
// | All rights reserved. |
// +----------------------------------------------------------------------+
// | MDB2 is a merge of PEAR DB and Metabases that provides a unified DB |
// | API as well as database abstraction for PHP applications. |
// | This LICENSE is in the BSD license style. |
// | Redistribution and use in source and binary forms, with or without |
// | modification, are permitted provided that the following conditions |
// | Redistributions of source code must retain the above copyright |
// | notice, this list of conditions and the following disclaimer. |
// | Redistributions in binary form must reproduce the above copyright |
// | notice, this list of conditions and the following disclaimer in the |
// | documentation and/or other materials provided with the distribution. |
// | Neither the name of Manuel Lemos, Tomas V.V.Cox, Stig. S. Bakken, |
// | Lukas Smith nor the names of his contributors may be used to endorse |
// | or promote products derived from this software without specific prior|
// | written permission. |
// | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
// | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
// | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS |
// | FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE |
// | REGENTS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, |
// | INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, |
// | BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS|
// | OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED |
// | AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT |
// | LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY|
// | WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
// | POSSIBILITY OF SUCH DAMAGE. |
// +----------------------------------------------------------------------+
// | Author: Lukas Smith <smith@pooteeweet.org> |
// +----------------------------------------------------------------------+
// $Id: oci8.php,v 1.112 2005/12/29 18:25:07 lsmith Exp $
* @author Lukas Smith <smith@pooteeweet.org>
$this->dbsyntax = 'oci8';
$this->supported['sequences'] = true;
$this->supported['indexes'] = true;
$this->supported['summary_functions'] = true;
$this->supported['order_by_text'] = true;
$this->supported['current_id'] = true;
$this->supported['affected_rows'] = true;
$this->supported['transactions'] = true;
$this->supported['limit_queries'] = 'emulated';
$this->supported['LOBs'] = true;
$this->supported['replace'] = 'emulated';
$this->supported['sub_selects'] = true;
$this->supported['auto_increment'] = false; // not implemented
$this->supported['primary_key'] = false; // not implemented
$this->options['DBA_username'] = false;
$this->options['DBA_password'] = false;
$this->options['database_name_prefix'] = false;
$this->options['emulate_database'] = true;
$this->options['default_tablespace'] = false;
$this->options['default_text_field_length'] = 4000;
* This method is used to collect information about an error
$error_data = @OCIError ($error);
} elseif ($this->connection) {
$error_data = @OCIError ($this->connection);
$error_data = @OCIError ();
$native_code = $error_data['code'];
$native_msg = $error_data['message'];
1 => MDB2_ERROR_CONSTRAINT ,
900 => MDB2_ERROR_SYNTAX ,
904 => MDB2_ERROR_NOSUCHFIELD ,
913 => MDB2_ERROR_VALUE_COUNT_ON_ROW ,
921 => MDB2_ERROR_SYNTAX ,
923 => MDB2_ERROR_SYNTAX ,
942 => MDB2_ERROR_NOSUCHTABLE ,
955 => MDB2_ERROR_ALREADY_EXISTS ,
1400 => MDB2_ERROR_CONSTRAINT_NOT_NULL ,
1401 => MDB2_ERROR_INVALID ,
1407 => MDB2_ERROR_CONSTRAINT_NOT_NULL ,
1418 => MDB2_ERROR_NOT_FOUND ,
1476 => MDB2_ERROR_DIVZERO ,
1722 => MDB2_ERROR_INVALID_NUMBER ,
2289 => MDB2_ERROR_NOSUCHTABLE ,
2291 => MDB2_ERROR_CONSTRAINT ,
2292 => MDB2_ERROR_CONSTRAINT ,
2449 => MDB2_ERROR_CONSTRAINT ,
if (isset ($ecode_map[$native_code])) {
$error = $ecode_map[$native_code];
return array ($error, $native_code, $native_msg);
// {{{ beginTransaction()
* @return mixed MDB2_OK on success, a MDB2 error on failure
$this->debug ('starting transaction', 'beginTransaction');
if ($this->in_transaction) {
return MDB2_OK; //nothing to do
if (!$this->destructor_registered && $this->opened_persistent) {
$this->destructor_registered = true;
$this->in_transaction = true;
* Commit the database changes done during a transaction that is in
* @return mixed MDB2_OK on success, a MDB2 error on failure
$this->debug ('commit transaction', 'commit');
if (!$this->in_transaction) {
return $this->raiseError (MDB2_ERROR , null , null ,
'commit: transaction changes are being auto committed');
$connection = $this->getConnection ();
if (PEAR ::isError ($connection)) {
if (!@OCICommit ($connection)) {
return $this->raiseError ();
$this->in_transaction = false;
* Cancel any database changes done during a transaction that is in
* @return mixed MDB2_OK on success, a MDB2 error on failure
$this->debug ('rolling back transaction', 'rollback');
if (!$this->in_transaction) {
return $this->raiseError (MDB2_ERROR , null , null ,
'rollback: transactions can not be rolled back when changes are auto committed');
$connection = $this->getConnection ();
if (PEAR ::isError ($connection)) {
if (!@OCIRollback ($connection)) {
return $this->raiseError ();
$this->in_transaction = false;
* do the grunt work of the connect
* @return connection on success or MDB2 Error Object on failure
function _doConnect($username, $password, $persistent = false )
if (!PEAR ::loadExtension ($this->phptype)) {
return $this->raiseError (MDB2_ERROR_NOT_FOUND , null , null ,
'extension '. $this->phptype. ' is not compiled into PHP');
if (isset ($this->dsn['hostspec'])) {
$sid = $this->dsn['hostspec'];
return $this->raiseError (MDB2_ERROR , null , null ,
'it was not specified a valid Oracle Service Identifier (SID)');
if (isset ($this->dsn['new_link'])
&& ($this->dsn['new_link'] == 'true' || $this->dsn['new_link'] === true )
$connect_function = 'oci_new_connect';
$connect_function = $persistent ? 'oci_pconnect' : 'oci_connect';
$charset = empty ($this->dsn['charset']) ? null : $this->dsn['charset'];
$connection = @$connect_function($username, $password, $sid, $charset);
if (isset ($error['code']) && $error['code'] == 12541 ) {
// Couldn't find TNS listener. Try direct connection.
$connection = @$connect_function($username, $password, null , $charset);
$connect_function = $persistent ? 'OCIPLogon' : 'OCILogon';
$connection = @$connect_function($username, $password, $sid);
return $this->raiseError (MDB2_ERROR_CONNECT_FAILED );
* Connect to the database
* @return MDB2_OK on success, MDB2 Error Object on failure
if ($this->database_name && $this->options['emulate_database']) {
$this->dsn['username'] = $this->options['database_name_prefix']. $this->database_name;
&& $this->opened_persistent == $this->options['persistent']
$this->options['persistent']
if (PEAR ::isError ($connection)) {
$this->connection = $connection;
$this->connected_dsn = $this->dsn;
$this->opened_persistent = $this->options['persistent'];
$this->dbsyntax = $this->dsn['dbsyntax'] ? $this->dsn['dbsyntax'] : $this->phptype;
$query = "ALTER SESSION SET NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS'";
if (PEAR ::isError ($err)) {
$query = "ALTER SESSION SET NLS_NUMERIC_CHARACTERS='. '";
if (PEAR ::isError ($err)) {
* Log out and disconnect from the database.
* @return mixed true on success, false if not connected and error
if ($this->in_transaction) {
if (!$this->opened_persistent || $force) {
@oci_close ($this->connection);
@OCILogOff ($this->connection);
$this->in_transaction = false;
* execute a query as database administrator
* @param string $query the SQL query
* @return mixed MDB2_OK on success, a MDB2 error on failure
$this->options['DBA_username'],
$this->options['DBA_password'],
$this->options['persistent']
if (PEAR ::isError ($connection)) {
$offset = $this->row_offset;
$limit = $this->row_limit;
$this->row_offset = $this->row_limit = 0;
$query = $this->_modifyQuery($query, false , $limit, $offset);
$result = $this->_doQuery($query, false , $connection, false );
if (PEAR ::isError ($result)) {
return $this->_affectedRows ($connection, $result);
* @param string $query the SQL query
* @param mixed $types array that contains the types of the columns in
* @param boolean $is_manip if the query is a manipulation query
* @return mixed MDB2_OK on success, a MDB2 error on failure
$this->options['DBA_username'],
$this->options['DBA_password'],
$this->options['persistent']
if (PEAR ::isError ($connection)) {
$offset = $this->row_offset;
$limit = $this->row_limit;
$this->row_offset = $this->row_limit = 0;
$query = $this->_modifyQuery($query, $is_manip, $limit, $offset);
$result = $this->_doQuery($query, $is_manip, $connection, false );
if (PEAR ::isError ($result)) {
$affected_rows = $this->_affectedRows ($connection, $result);
$return = & $this->_wrapResult ($result, $types, true , false , $limit, $offset);
* Changes a query string for various DBMS specific reasons
* @param string $query query to modify
* @return the new (modified) query
// "SELECT 2+2" must be "SELECT 2+2 FROM dual" in Oracle
* @param string $query query
* @param boolean $is_manip if the query is a manipulation query
* @param resource $connection
* @param string $database_name
* @return result or error object
function _doQuery($query, $is_manip = false , $connection = null , $database_name = null )
$this->last_query = $query;
$this->debug ($query, 'query');
if ($this->getOption ('disable_query')) {
$connection = $this->getConnection ();
if (PEAR ::isError ($connection)) {
$result = @OCIParse ($connection, $query);
return $this->raiseError (MDB2_ERROR , null , null ,
'Could not create statement');
$mode = $this->in_transaction ? OCI_DEFAULT : OCI_COMMIT_ON_SUCCESS;
if (!@OCIExecute ($result, $mode)) {
return $this->raiseError ($result);
if (is_numeric($this->options['result_buffering'])) {
@ocisetprefetch ($result, $this->options['result_buffering']);
* returns the number of rows affected
* @param resource $result
* @param resource $connection
* @return mixed MDB2 Error Object or the number of rows affected
function _affectedRows ($connection, $result = null )
$connection = $this->getConnection ();
if (PEAR ::isError ($connection)) {
return @OCIRowCount ($result);
// {{{ getServerVersion()
* return version information about the server
* @param string $native determines if the raw version string should be returned
* @return mixed array with versoin information or row string
$connection = $this->getConnection ();
if (PEAR ::isError ($connection)) {
$server_info = ociserverversion ($connection);
preg_match('/ (\d+)\.(\d+)\.(\d+)\.([\d\.]+) /', $server_info, $tmp);
'native' => $server_info,
* Prepares a query for multiple execution with execute().
* With some database backends, this is emulated.
* prepare() requires a generic query as string like
* 'INSERT INTO numbers VALUES(?,?)' or
* 'INSERT INTO numbers VALUES(:foo,:bar)'.
* The ? and :[a-zA-Z] and are placeholders which can be set using
* bindParam() and the query can be send off using the execute() method.
* @param string $query the query to prepare
* @param mixed $types array that contains the types of the placeholders
* @param mixed $result_types array that contains the types of the columns in
* the result set, if set to MDB2_PREPARE_MANIP the
query is handled as a manipulation query
* @return mixed resource handle for the prepared query on success, a MDB2
* @see bindParam, execute
function &prepare($query, $types = null , $result_types = null )
$is_manip = ($result_types === MDB2_PREPARE_MANIP );
$this->debug ($query, 'prepare');
$columns = $variables = '';
foreach ($types as $parameter => $type) {
if ($type == 'clob' || $type == 'blob') {
$columns.= ($columns ? ', ' : ' RETURNING '). $parameter;
$variables.= ($variables ? ', ' : ' INTO '). ':'. $parameter;
$placeholder_type_guess = $placeholder_type = null;
while ($position < strlen($query)) {
$q_position = strpos($query, $question, $position);
$c_position = strpos($query, $colon, $position);
if ($q_position && $c_position) {
$p_position = min($q_position, $c_position);
$p_position = $q_position;
$p_position = $c_position;
$placeholder_type_guess = $query[$p_position];
if (is_int($quote = strpos($query, "'", $position)) && $quote < $p_position) {
if (!is_int($end_quote = strpos($query, "'", $quote + 1 ))) {
$err = & $this->raiseError (MDB2_ERROR_SYNTAX , null , null ,
'prepare: query with an unterminated text string specified');
$position = $end_quote + 1;
if ($end_quote == $quote + 1 ) {
$position = $end_quote + 1;
$position = $end_quote + 1;
} elseif ($query[$position] == $placeholder_type_guess) {
if ($placeholder_type_guess == ':' && !$contains_lobs) {
$placeholder_type = $query[$p_position];
$question = $colon = $placeholder_type;
if ($placeholder_type == ':') {
$parameter = preg_replace('/^.{'. ($position+1 ). '}([a-z0-9_]+).*$/si', '\\1', $query);
$err = & $this->raiseError (MDB2_ERROR_SYNTAX , null , null ,
'prepare: named parameter with an empty name');
$length = strlen($parameter)+1;
if (!$type && isset ($types[$parameter])) {
$type = $types[$parameter];
if ($type == 'clob' || $type == 'blob') {
$value = $this->quote (true , $type);
$position = $p_position + strlen($value) - 1;
} elseif ($placeholder_type == '?') {
$position = $p_position + strlen($parameter);
$position = $p_position + strlen($parameter);
$query.= $columns. $variables;
$connection = $this->getConnection ();
if (PEAR ::isError ($connection)) {
$statement = @OCIParse ($connection, $query);
$err = & $this->raiseError (MDB2_ERROR , null , null ,
'Could not create statement');
$class_name = 'MDB2_Statement_'. $this->phptype;
$obj = & new $class_name($this, $statement, $query, $types, $result_types, $is_manip, $this->row_limit, $this->row_offset);
* returns the next free id of a sequence
* @param string $seq_name name of the sequence
* @param boolean $ondemand when true the seqence is
* automatic created, if it
* @return mixed MDB2 Error Object or id
function nextID($seq_name, $ondemand = true )
$sequence_name = $this->quoteIdentifier ($this->getSequenceName ($seq_name), true );
$query = " SELECT $sequence_name.nextval FROM DUAL";
$this->expectError (MDB2_ERROR_NOSUCHTABLE );
$result = $this->queryOne ($query, 'integer');
if (PEAR ::isError ($result)) {
if ($ondemand && $result->getCode () == MDB2_ERROR_NOSUCHTABLE ) {
$this->loadModule ('Manager');
$result = $this->manager->createSequence ($seq_name, 1 );
if (PEAR ::isError ($result)) {
return $this->nextId ($seq_name, false );
* returns the current id of a sequence
* @param string $seq_name name of the sequence
* @return mixed MDB2_Error or id
$sequence_name = $this->quoteIdentifier ($this->getSequenceName ($seq_name), true );
return $this->queryOne (" SELECT $sequence_name.currval FROM DUAL" );
// {{{ _skipLimitOffset()
* Skip the first row of a result set.
* @param resource $result
* @return mixed a result handle or MDB2_OK on success, a MDB2 error on failure
if ($this->rownum > $this->limit) {
while ($this->offset_count < $this->offset) {
if (!@OCIFetchInto ($this->result, $row, OCI_RETURN_NULLS )) {
$this->offset_count = $this->offset;
* Fetch a row and insert the data into an existing array.
* @param int $fetchmode how the array data should be indexed
* @param int $rownum number of the row where the data can be found
* @return int data array on success, a MDB2 error on failure
function &fetchRow($fetchmode = MDB2_FETCHMODE_DEFAULT , $rownum = null )
$seek = $this->seek ($rownum);
if (PEAR ::isError ($seek)) {
if ($fetchmode == MDB2_FETCHMODE_DEFAULT ) {
$fetchmode = $this->db->fetchmode;
if ($fetchmode & MDB2_FETCHMODE_ASSOC ) {
@OCIFetchInto ($this->result, $row, OCI_ASSOC+OCI_RETURN_NULLS );
&& $this->db->options ['portability'] & MDB2_PORTABILITY_FIX_CASE
@OCIFetchInto ($this->result, $row, OCI_RETURN_NULLS );
$err = & $this->db->raiseError (MDB2_ERROR_NEED_MORE_DATA , null , null ,
'fetchRow: resultset has already been freed');
if ($this->db->options ['portability'] & MDB2_PORTABILITY_RTRIM ) {
$this->db->_fixResultArrayValues ($row, MDB2_PORTABILITY_RTRIM );
if (!empty ($this->values)) {
$this->_assignBindColumns ($row);
if (!empty ($this->types)) {
$row = $this->db->datatype ->convertResultRow ($this->types, $row);
if ($fetchmode === MDB2_FETCHMODE_OBJECT ) {
$object_class = $this->db->options ['fetch_class'];
if ($object_class == 'stdClass') {
$row = &new $object_class($row);
* Retrieve the names of columns returned by the DBMS in a query result.
* @return mixed associative array variable
* that holds the names of columns. The indexes of the array are
* the column names mapped to lower case and the values are the
* respective numbers of the columns starting from 0. Some DBMS may
* not return any columns when the result set does not contain any
function _getColumnNames ()
if (PEAR ::isError ($numcols)) {
for ($column = 0; $column < $numcols; $column++ ) {
$column_name = @OCIColumnName ($this->result, $column + 1 );
$columns[$column_name] = $column;
if ($this->db->options ['portability'] & MDB2_PORTABILITY_FIX_CASE ) {
* Count the number of columns returned by the DBMS in a query result.
* @return mixed integer value with the number of columns, a MDB2 error
$cols = @OCINumCols ($this->result);
return $this->db->raiseError (MDB2_ERROR_NEED_MORE_DATA , null , null ,
'numCols: resultset has already been freed');
return $this->db->raiseError ();
* Free the internal resources associated with $result.
* @return boolean true on success, false if $result is invalid
$free = @OCIFreeCursor ($this->result);
return $this->db->raiseError ();
* @param int $rownum row number upto which the buffer should be filled
if the row number is null all rows are ready into the buffer
* @return boolean true on success, false on failure
} elseif (isset ($this->buffer[$rownum])) {
return (bool) $this->buffer[$rownum];
&& ($row = @OCIFetchInto ($this->result, $buffer, OCI_RETURN_NULLS ))
} elseif ($this->limit && $this->buffer_rownum >= $this->limit) {
* Fetch a row and insert the data into an existing array.
* @param int $fetchmode how the array data should be indexed
* @param int $rownum number of the row where the data can be found
* @return int data array on success, a MDB2 error on failure
function &fetchRow($fetchmode = MDB2_FETCHMODE_DEFAULT , $rownum = null )
$err = & $this->db->raiseError (MDB2_ERROR_NEED_MORE_DATA , null , null ,
'fetchRow: resultset has already been freed');
$seek = $this->seek($rownum);
if (PEAR ::isError ($seek)) {
$target_rownum = $this->rownum + 1;
if ($fetchmode == MDB2_FETCHMODE_DEFAULT ) {
$fetchmode = $this->db->fetchmode;
$row = $this->buffer[$target_rownum];
if ($fetchmode & MDB2_FETCHMODE_ASSOC ) {
$column_names = $this->getColumnNames ();
foreach ($column_names as $name => $i) {
$column_names[$name] = $row[$i];
if (!empty ($this->values)) {
$this->_assignBindColumns ($row);
if (!empty ($this->types)) {
$row = $this->db->datatype ->convertResultRow ($this->types, $row);
if ($this->db->options ['portability'] & MDB2_PORTABILITY_RTRIM ) {
$this->db->_fixResultArrayValues ($row, MDB2_PORTABILITY_RTRIM );
if ($fetchmode === MDB2_FETCHMODE_OBJECT ) {
$object_class = $this->db->options ['fetch_class'];
if ($object_class == 'stdClass') {
$row = &new $object_class($row);
* seek to a specific row in a result set
* @param int $rownum number of the row where the data can be found
* @return mixed MDB2_OK on success, a MDB2 error on failure
function seek($rownum = 0 )
return $this->db->raiseError (MDB2_ERROR_NEED_MORE_DATA , null , null ,
'seek: resultset has already been freed');
$this->rownum = $rownum - 1;
* check if the end of the result set has been reached
* @return mixed true or false on sucess, a MDB2 error on failure
return $this->db->raiseError (MDB2_ERROR_NEED_MORE_DATA , null , null ,
'valid: resultset has already been freed');
* returns the number of rows in a result object
* @return mixed MDB2 Error Object or the number of rows
return $this->db->raiseError (MDB2_ERROR_NEED_MORE_DATA , null , null ,
'seek: resultset has already been freed');
* Free the internal resources associated with $result.
* @return boolean true on success, false if $result is invalid
* Execute a prepared query statement helper method.
* @param mixed $result_class string which specifies which result class to use
* @param mixed $result_wrap_class string which specifies which class to wrap results in
* @return mixed a result handle or MDB2_OK on success, a MDB2 error on failure
function &_execute ($result_class = true , $result_wrap_class = false )
$this->db->last_query = $this->query;
$this->db->debug ($this->query, 'execute');
if ($this->db->getOption ('disable_query')) {
$connection = $this->db->getConnection ();
if (PEAR ::isError ($connection)) {
$lobs = $quoted_values = array ();
foreach ($this->values as $parameter => $value) {
$type = array_key_exists($parameter, $this->types) ? $this->types[$parameter] : null;
if ($type == 'clob' || $type == 'blob') {
$lobs[$i]['file'] = false;
$value.= fread($fp, 8192 );
} elseif (preg_match('/^(\w+:\/\/)(.*)$/', $value, $match)) {
$lobs[$i]['file'] = true;
if ($match[1 ] == 'file://') {
$lobs[$i]['value'] = $value;
$lobs[$i]['descriptor'] = @OCINewDescriptor ($connection, OCI_D_LOB );
$result = $this->db->raiseError ();
$lob_type = ($type == 'blob' ? OCI_B_BLOB : OCI_B_CLOB );
if (!@OCIBindByName ($this->statement, ':'. $parameter, $lobs[$i]['descriptor'], -1 , $lob_type)) {
$result = $this->db->raiseError ($this->statement);
$quoted_values[$i] = $this->db->quote ($value, $type, false );
if (PEAR ::isError ($quoted_values[$i])) {
return $quoted_values[$i];
if (!@OCIBindByName ($this->statement, ':'. $parameter, $quoted_values[$i])) {
$result = $this->db->raiseError ($this->statement);
if (!PEAR ::isError ($result)) {
$mode = (!empty ($lobs) || $this->db->in_transaction ) ? OCI_DEFAULT : OCI_COMMIT_ON_SUCCESS;
if (!@OCIExecute ($this->statement, $mode)) {
$err = & $this->db->raiseError ($this->statement);
foreach ($lobs as $i => $stream) {
if (!is_null($stream['value']) && $stream['value'] !== '') {
$result = $lobs[$i]['descriptor']->savefile ($stream['value']);
$result = $lobs[$i]['descriptor']->save ($stream['value']);
$result = $this->db->raiseError ();
if (!PEAR ::isError ($result)) {
if (!$this->db->in_transaction ) {
if (!@OCICommit ($connection)) {
$result = $this->db->raiseError ();
++ $this->db->uncommitedqueries;
foreach ($keys as $key) {
$lobs[$key]['descriptor']->free ();
if (PEAR ::isError ($result)) {
$affected_rows = $this->db->_affectedRows ($connection, $this->statement);
$result = & $this->db->_wrapResult ($this->statement, $this->result_types,
$result_class, $result_wrap_class, $this->row_limit, $this->row_offset);
* Release resources allocated for the specified prepared query.
* @return mixed MDB2_OK on success, a MDB2 error on failure
if (!@OCIFreeStatement ($this->statement)) {
return $this->db->raiseError ();
Documentation generated on Mon, 11 Mar 2019 14:32:24 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|