本文整理汇总了PHP中fbsql_close函数的典型用法代码示例。如果您正苦于以下问题:PHP fbsql_close函数的具体用法?PHP fbsql_close怎么用?PHP fbsql_close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fbsql_close函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: _close
function _close()
{
return @fbsql_close($this->_connectionID);
}
开发者ID:BackupTheBerlios,项目名称:facturaphp-svn,代码行数:4,代码来源:adodb-fbsql.inc.php
示例2: disconnect
/**
* Disconnects from the database server
*
* @return bool TRUE on success, FALSE on failure
*/
function disconnect()
{
$ret = @fbsql_close($this->connection);
$this->connection = null;
return $ret;
}
开发者ID:roojs,项目名称:pear,代码行数:11,代码来源:fbsql.php
示例3: _close
/**
* all the RDBMS specific things needed close a DB connection
*
* @return boolean
* @access private
**/
function _close()
{
if ($this->connection != 0) {
if (isset($this->supported['Transactions']) && !$this->auto_commit) {
$result = $this->autoCommit(TRUE);
}
@fbsql_close($this->connection);
$this->connection = 0;
$this->affected_rows = -1;
if (isset($result) && MDB::isError($result)) {
return $result;
}
unset($GLOBALS['_MDB_databases'][$this->database]);
return TRUE;
}
return FALSE;
}
开发者ID:Esleelkartea,项目名称:kz-adeada-talleres-electricos-,代码行数:23,代码来源:fbsql.php
示例4: close
public function close()
{
if (!empty($this->connect)) {
@fbsql_close($this->connect);
} else {
return false;
}
}
开发者ID:Allopa,项目名称:ZN-Framework-Starter,代码行数:8,代码来源:FbsqlDriver.php
示例5:
/**
* execute a query as DBA
*
* @param string $query the SQL query
* @param mixed $types array that contains the types of the columns in
* the result set
* @param boolean $is_manip if the query is a manipulation query
* @return mixed MDB2_OK on success, a MDB2 error on failure
* @access public
*/
function &standaloneQuery($query, $types = null, $is_manip = false)
{
$user = $this->options['DBA_username'] ? $this->options['DBA_username'] : $this->dsn['username'];
$pass = $this->options['DBA_password'] ? $this->options['DBA_password'] : $this->dsn['password'];
$connection = $this->_doConnect($user, $pass, $this->options['persistent']);
if (MDB2::isError($connection)) {
return $connection;
}
$offset = $this->offset;
$limit = $this->limit;
$this->offset = $this->limit = 0;
$query = $this->_modifyQuery($query, $is_manip, $limit, $offset);
$result =& $this->_doQuery($query, $is_manip, $connection, $this->database_name);
if (!MDB2::isError($result)) {
$result = $this->_affectedRows($connection, $result);
}
@fbsql_close($connection);
return $result;
}
开发者ID:Dulciane,项目名称:jaws,代码行数:29,代码来源:fbsql.php
示例6: disconnect
/**
* Log out and disconnect from the database.
*
* @param boolean $force if the disconnect should be forced even if the
* connection is opened persistently
* @return mixed true on success, false if not connected and error
* object on error
* @access public
*/
function disconnect($force = true)
{
if (is_resource($this->connection)) {
if ($this->in_transaction) {
$this->rollback();
}
if (!$this->opened_persistent || $force) {
@fbsql_close($this->connection);
}
}
return parent::disconnect($force);
return MDB2_OK;
}
开发者ID:ajisantoso,项目名称:kateglo,代码行数:22,代码来源:fbsql.php
注:本文中的fbsql_close函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论