Source for file ibase.php
Documentation is available at ibase.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: Lorenzo Alberton <l.alberton@quipo.it> |
// +----------------------------------------------------------------------+
// $Id: ibase.php,v 1.134 2006/01/22 18:30:16 lsmith Exp $
* MDB2 FireBird/InterBase driver
* @author Lorenzo Alberton <l.alberton@quipo.it>
$this->phptype = 'ibase';
$this->dbsyntax = 'ibase';
$this->supported['sequences'] = true;
$this->supported['indexes'] = true;
$this->supported['affected_rows'] = function_exists('ibase_affected_rows');
$this->supported['summary_functions'] = true;
$this->supported['order_by_text'] = true;
$this->supported['transactions'] = true;
$this->supported['current_id'] = true;
// maybe this needs different handling for ibase and firebird?
$this->supported['limit_queries'] = 'emulated';
$this->supported['LOBs'] = true;
$this->supported['replace'] = false;
$this->supported['sub_selects'] = true;
$this->supported['auto_increment'] = true;
$this->supported['primary_key'] = true;
$this->options['DBA_username'] = false;
$this->options['DBA_password'] = false;
$this->options['database_path'] = '';
$this->options['database_extension'] = '.gdb';
$this->options['default_text_field_length'] = 4096;
* This method is used to collect information about an error
$native_msg = @ibase_errmsg ();
$native_code = @ibase_errcode ();
// memo for the interbase php module hackers: we need something similar
// to mysql_errno() to retrieve error codes instead of this ugly hack
if (preg_match('/^([^0-9\-]+)([0-9\-]+)\s+(.*)$/', $native_msg, $m)) {
$native_code = (int) $m[2 ];
// try to interpret Interbase error code (that's why we need ibase_errno()
// in the interbase module to return the real error code)
if (isset ($m[3 ]) && is_int(strpos($m[3 ], 'Table unknown'))) {
$errno = MDB2_ERROR_NOSUCHTABLE;
-104 => MDB2_ERROR_SYNTAX ,
-150 => MDB2_ERROR_ACCESS_VIOLATION ,
-151 => MDB2_ERROR_ACCESS_VIOLATION ,
-155 => MDB2_ERROR_NOSUCHTABLE ,
-157 => MDB2_ERROR_NOSUCHFIELD ,
-158 => MDB2_ERROR_VALUE_COUNT_ON_ROW ,
-170 => MDB2_ERROR_MISMATCH ,
-171 => MDB2_ERROR_MISMATCH ,
-172 => MDB2_ERROR_INVALID ,
// -204 => // Covers too many errors, need to use regex on msg
-205 => MDB2_ERROR_NOSUCHFIELD ,
-206 => MDB2_ERROR_NOSUCHFIELD ,
-208 => MDB2_ERROR_INVALID ,
-219 => MDB2_ERROR_NOSUCHTABLE ,
-297 => MDB2_ERROR_CONSTRAINT ,
-303 => MDB2_ERROR_INVALID ,
-413 => MDB2_ERROR_INVALID_NUMBER ,
-530 => MDB2_ERROR_CONSTRAINT ,
-551 => MDB2_ERROR_ACCESS_VIOLATION ,
-552 => MDB2_ERROR_ACCESS_VIOLATION ,
// -607 => // Covers too many errors, need to use regex on msg
-625 => MDB2_ERROR_CONSTRAINT_NOT_NULL ,
-803 => MDB2_ERROR_CONSTRAINT ,
-804 => MDB2_ERROR_VALUE_COUNT_ON_ROW ,
-904 => MDB2_ERROR_CONNECT_FAILED ,
-922 => MDB2_ERROR_NOSUCHDB ,
-923 => MDB2_ERROR_CONNECT_FAILED ,
-924 => MDB2_ERROR_CONNECT_FAILED
if (isset ($ecode_map[$native_code])) {
$error = $ecode_map[$native_code];
if (!isset ($error_regexps)) {
'/generator .* is not defined/'
=> MDB2_ERROR_SYNTAX , // for compat. w ibase_errcode()
'/table.*(not exist|not found|unknown)/i'
=> MDB2_ERROR_NOSUCHTABLE ,
'/table .* already exists/i'
=> MDB2_ERROR_ALREADY_EXISTS ,
'/unsuccessful metadata update .* failed attempt to store duplicate value/i'
=> MDB2_ERROR_ALREADY_EXISTS ,
'/unsuccessful metadata update .* not found/i'
'/validation error for column .* value "\*\*\* null/i'
=> MDB2_ERROR_CONSTRAINT_NOT_NULL ,
'/violation of [\w ]+ constraint/i'
=> MDB2_ERROR_CONSTRAINT ,
'/conversion error from string/i'
=> MDB2_ERROR_INVALID_NUMBER ,
=> MDB2_ERROR_ACCESS_VIOLATION ,
'/arithmetic exception, numeric overflow, or string truncation/i'
foreach ($error_regexps as $regexp => $code) {
return array ($error, $native_code, $native_msg);
* Delimited identifiers are a nightmare with InterBase, so they're disabled
* @param string $str identifier name to be quoted
* @param bool $check_option check the 'quote_identifier' option
* @return string quoted identifier string
* Returns a native connection
* @return mixed a valid MDB2 connection object,
* or a MDB2 error object on error
if (PEAR ::isError ($result)) {
if ($this->in_transaction) {
return $this->connection;
// {{{ 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
return $this->raiseError (MDB2_ERROR , null , null ,
'beginTransaction: could not start a transaction');
$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');
return $this->raiseError (MDB2_ERROR , null , null ,
'commit: could not commit a transaction');
$this->in_transaction = false;
//$this->transaction_id = 0;
* 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');
return $this->raiseError (MDB2_ERROR , null , null ,
'rollback: Could not rollback a pending transaction: '.ibase_errmsg ());
$this->in_transaction = false;
* Builds the string with path+dbname+extension
* @return string full database path+file
if ($database_name == '') {
$ret = $this->options['database_path'] . $database_name;
if ( strpos($database_name, '.fdb') === false
&& strpos($database_name, '.gdb') === false
$ret .= $this->options['database_extension'];
* Does the grunt work of connecting to the database
* @return mixed connection resource on success, MDB2 Error Object on failure
function _doConnect($database_name, $persistent = false )
$user = $this->dsn['username'];
$pw = $this->dsn['password'];
$dbhost = $this->dsn['hostspec'] ?
($this->dsn['hostspec']. ':'. $database_name) : $database_name;
$params[] = !empty ($user) ? $user : null;
$params[] = !empty ($pw) ? $pw : null;
$params[] = isset ($this->dsn['charset']) ? $this->dsn['charset'] : null;
$params[] = isset ($this->dsn['buffers']) ? $this->dsn['buffers'] : null;
$params[] = isset ($this->dsn['dialect']) ? $this->dsn['dialect'] : null;
$params[] = isset ($this->dsn['role']) ? $this->dsn['role'] : null;
$connect_function = $persistent ? 'ibase_pconnect' : 'ibase_connect';
return $this->raiseError (MDB2_ERROR_CONNECT_FAILED );
@ibase_timefmt ("%Y-%m-%d %H:%M:%S", IBASE_TIMESTAMP );
@ibase_timefmt ("%Y-%m-%d", IBASE_DATE );
@ini_set("ibase.timestampformat", "%Y-%m-%d %H:%M:%S");
//@ini_set("ibase.timeformat", "%H:%M:%S");
@ini_set("ibase.dateformat", "%Y-%m-%d");
* Connect to the database
* @return true on success, MDB2 Error Object on failure
&& $this->connected_database_name == $database_file
&& $this->opened_persistent == $this->options['persistent']
if (!PEAR ::loadExtension ('interbase')) {
return $this->raiseError (MDB2_ERROR_NOT_FOUND , null , null ,
'connect: extension '. $this->phptype. ' is not compiled into PHP');
if (!empty ($this->database_name)) {
$connection = $this->_doConnect($database_file, $this->options['persistent']);
if (PEAR ::isError ($connection)) {
$this->connection = & $connection;
$this->connected_dsn = $this->dsn;
$this->connected_database_name = $database_file;
$this->opened_persistent = $this->options['persistent'];
$this->dbsyntax = $this->dsn['dbsyntax'] ? $this->dsn['dbsyntax'] : $this->phptype;
* Log out and disconnect from the database.
* @return mixed true on success, false if not connected and error
if ($this->in_transaction) {
if ($force || !$this->opened_persistent) {
@ibase_close ($this->connection);
$this->in_transaction = false;
* @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')) {
if (PEAR ::isError ($connection)) {
$result = ibase_query ($connection, $query);
return $this->raiseError ();
* 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 )
if (PEAR ::isError ($connection)) {
return (function_exists('ibase_affected_rows') ? ibase_affected_rows ($connection) : 0 );
* Changes a query string for various DBMS specific reasons
* @param string $query query to modify
* @return the new (modified) query
if ($limit > 0 && $this->dsn['dbsyntax'] == 'firebird') {
$query = preg_replace('/^([\s(])*SELECT(?!\s*FIRST\s*\d+)/i',
" SELECT FIRST $limit SKIP $offset" , $query);
// {{{ getServerVersion()
* return version information about the server
* @param string $native determines if the raw version string should be returned
* @return mixed array/string with version information or MDB2 error object
$ibserv = ibase_service_attach ($this->dsn['hostspec'], $this->options['DBA_username'], $this->options['DBA_password']);
$server_info = ibase_server_info ($ibserv, IBASE_SVC_SERVER_VERSION );
ibase_service_detach ($ibserv);
//WI-V1.5.3.4854 Firebird 1.5
if (!preg_match('/-V([\d\.]*)/', $server_info, $matches)) {
return $this->raiseError (MDB2_ERROR , null , null ,
'Could not parse version information:'. $server_info);
$tmp = explode('.', $matches[1 ], 4 );
'major' => isset ($tmp[0 ]) ? $tmp[0 ] : null ,
'minor' => isset ($tmp[1 ]) ? $tmp[1 ] : null ,
'patch' => isset ($tmp[2 ]) ? $tmp[2 ] : null ,
'extra' => isset ($tmp[3 ]) ? $tmp[3 ] : null ,
'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->offset = $this->limit = 0;
$this->debug ($query, 'prepare');
$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) {
$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');
$positions[$parameter] = $p_position;
$positions[] = $p_position;
$position = $p_position + 1;
if (PEAR ::isError ($connection)) {
$statement = @ibase_prepare ($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, $positions, $query, $types, $result_types, $is_manip, $limit, $offset);
* adds sequence name formatting to a sequence name
* @param string $sqn name of the sequence
* @return string formatted sequence name
* 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 )
$query = 'SELECT GEN_ID('. $sequence_name. ', 1) as the_value FROM RDB$DATABASE';
$result = $this->queryOne ($query, 'integer');
if (PEAR ::isError ($result)) {
$this->loadModule ('Manager', null , true );
// Since we are creating the sequence on demand
// we know the first id = 1 so initialize the
$result = $this->manager->createSequence ($seq_name, 2 );
if (PEAR ::isError ($result)) {
return $this->raiseError (MDB2_ERROR , null , null ,
'nextID: on demand sequence could not be created');
// First ID of a newly created sequence is 1
// BUT generators are not always reset, so return the actual value
return $this->currID($seq_name);
* returns the current id of a sequence
* @param string $seq_name name of the sequence
* @return mixed MDB2 Error Object or id
$query = 'SELECT GEN_ID('. $sequence_name. ', 0) as the_value FROM RDB$DATABASE';
$value = @$this->queryOne ($query);
if (PEAR ::isError ($value)) {
return $this->raiseError (MDB2_ERROR , null , null ,
'currID: Unable to select from ' . $seq_name) ;
return $this->raiseError (MDB2_ERROR , null , null ,
'currID: could not find value in sequence table');
// {{{ _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->db->dsn ['dbsyntax'] == 'firebird') {
if ($this->rownum > $this->limit) {
while ($this->offset_count < $this->offset) {
if (!is_array(@ibase_fetch_row ($this->result))) {
$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 )
if ($this->result === true ) {
//query successfully executed, but without results...
$seek = $this->seek ($rownum);
if (PEAR ::isError ($seek)) {
if ($fetchmode == MDB2_FETCHMODE_DEFAULT ) {
$fetchmode = $this->db->fetchmode;
if ($fetchmode & MDB2_FETCHMODE_ASSOC ) {
$row = @ibase_fetch_assoc ($this->result);
&& $this->db->options ['portability'] & MDB2_PORTABILITY_FIX_CASE
$row = @ibase_fetch_row ($this->result);
$err = & $this->db->raiseError (MDB2_ERROR_NEED_MORE_DATA , null , null ,
'fetchRow: resultset has already been freed');
if (($mode = ($this->db->options ['portability'] & MDB2_PORTABILITY_RTRIM )
+ ($this->db->options ['portability'] & MDB2_PORTABILITY_EMPTY_TO_NULL ))
$this->db->_fixResultArrayValues ($row, $mode);
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_info = @ibase_field_info ($this->result, $column);
$columns[$column_info['alias']] = $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
if ($this->result === true ) {
//query successfully executed, but without results...
return $this->db->raiseError ('numCols(): not a valid ibase resource');
$cols = @ibase_num_fields ($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 = @ibase_free_result ($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];
&& ($buffer = @ibase_fetch_row ($this->result))
} 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 )
if ($this->result === true ) {
//query successfully executed, but without results...
$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 (($mode = ($this->db->options ['portability'] & MDB2_PORTABILITY_RTRIM )
+ ($this->db->options ['portability'] & MDB2_PORTABILITY_EMPTY_TO_NULL ))
$this->db->_fixResultArrayValues ($row, $mode);
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);
* 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)) {
$parameters = array (0 => $this->statement);
foreach ($this->positions as $parameter => $current_position) {
return $this->db->raiseError ();
$value = $this->values[$parameter];
$type = array_key_exists($parameter, $this->types) ? $this->types[$parameter] : null;
$parameters[] = $this->db->quote ($value, $type, false );
$err = & $this->db->raiseError ();
$affected_rows = $this->db->_affectedRows ($connection);
$result = & $this->db->_wrapResult ($result, $this->result_types,
$result_class, $result_wrap_class, $this->limit, $this->offset);
* Release resources allocated for the specified prepared query.
* @return mixed MDB2_OK on success, a MDB2 error on failure
if (!@ibase_free_query ($this->statement)) {
return $this->db->raiseError ();
Documentation generated on Mon, 11 Mar 2019 14:36:16 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|