cvs: php4 /pear/DB ibase.php

From: Date: Thu, 27 Dec 2001 11:53:19 +0000
Subject: cvs: php4 /pear/DB ibase.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-1708@lists.php.net to get a copy of this message
cox Thu Dec 27 06:53:19 2001 EDT Modified files: /php4/pear/DB ibase.php Log: implemented freeResult() Index: php4/pear/DB/ibase.php diff -u php4/pear/DB/ibase.php:1.27 php4/pear/DB/ibase.php:1.28 --- php4/pear/DB/ibase.php:1.27 Tue Dec 11 10:31:15 2001 +++ php4/pear/DB/ibase.php Thu Dec 27 06:53:19 2001 @@ -16,7 +16,7 @@ // | Authors: Sterling Hughes <sterling@php.net> | // +----------------------------------------------------------------------+ // -// $Id: ibase.php,v 1.27 2001/12/11 15:31:15 sebastian Exp $ +// $Id: ibase.php,v 1.28 2001/12/27 11:53:19 cox Exp $ // // Database independent query interface definition for PHP's Interbase // extension. @@ -161,7 +161,15 @@ function freeResult() { - return $this->raiseError(DB_ERROR_NOT_CAPABLE); + if (is_resource($result)) { + return ibase_free_result($result); + } + if (!isset($this->prepare_tokens[(int)$result])) { + return false; + } + unset($this->prepare_tokens[(int)$result]); + unset($this->prepare_types[(int)$result]); + return true; } function freeQuery($query)

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