本文整理汇总了PHP中ibase_free_query函数的典型用法代码示例。如果您正苦于以下问题:PHP ibase_free_query函数的具体用法?PHP ibase_free_query怎么用?PHP ibase_free_query使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ibase_free_query函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: sql_close
function sql_close()
{
if (!$this->db_connect_id) {
return false;
}
if ($this->transaction) {
@ibase_commit($this->db_connect_id);
}
if (sizeof($this->open_queries)) {
foreach ($this->open_queries as $i_query_id => $query_id) {
@ibase_free_query($query_id);
}
}
return @ibase_close($this->db_connect_id);
}
示例2: freePrepared
/**
* Frees the internal resources associated with a prepared query
*
* @param resource $stmt the prepared statement's PHP resource
* @param bool $free_resource should the PHP resource be freed too?
* Use false if you need to get data
* from the result set later.
*
* @return bool TRUE on success, FALSE if $result is invalid
*
* @see DB_ibase::prepare()
*/
function freePrepared($stmt, $free_resource = true)
{
if (!is_resource($stmt)) {
return false;
}
if ($free_resource) {
@ibase_free_query($stmt);
}
unset($this->prepare_tokens[(int) $stmt]);
unset($this->prepare_types[(int) $stmt]);
unset($this->manip_query[(int) $stmt]);
return true;
}
示例3: close
/**
* Closes the cursor and the statement.
*
* @return bool
*/
public function close()
{
if ($stmt = $this->_stmtResult) {
@ibase_free_result($this->_stmtResult);
$this->_stmtResult = null;
}
if ($this->_stmtPrepared) {
$r = @ibase_free_query($this->_stmtPrepared);
$this->_stmtPrepared = null;
return $r;
}
return false;
}
示例4: freeQuery
function freeQuery($query)
{
ibase_free_query($query);
return true;
}
示例5: free
/**
* Release resources allocated for the specified prepared query.
*
* @return mixed MDB2_OK on success, a MDB2 error on failure
* @access public
*/
function free()
{
if (null === $this->positions) {
return $this->db->raiseError(MDB2_ERROR, null, null, 'Prepared statement has already been freed', __FUNCTION__);
}
$result = MDB2_OK;
if (null !== $this->statement && !@ibase_free_query($this->statement)) {
$result = $this->db->raiseError(null, null, null, 'Could not free statement', __FUNCTION__);
}
parent::free();
return $result;
}
示例6: FreePreQuery
function FreePreQuery($intPreQuery)
{
$this->intQuery = ibase_free_query($intPreQuery);
if ($this->intDebug) {
echo "Query prepared free...\t\t<br>";
}
}