本文整理汇总了PHP中fbsql_error函数的典型用法代码示例。如果您正苦于以下问题:PHP fbsql_error函数的具体用法?PHP fbsql_error怎么用?PHP fbsql_error使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了fbsql_error函数的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: ErrorMsg
function ErrorMsg()
{
$this->_errorMsg = @fbsql_error($this->_connectionID);
return $this->_errorMsg;
}
开发者ID:BackupTheBerlios,项目名称:facturaphp-svn,代码行数:5,代码来源:adodb-fbsql.inc.php
示例2: fbsqlRaiseError
/**
* Produces a DB_Error object regarding the current problem
*
* @param int $errno if the error is being manually raised pass a
* DB_ERROR* constant here. If this isn't passed
* the error information gathered from the DBMS.
*
* @return object the DB_Error object
*
* @see DB_common::raiseError(),
* DB_fbsql::errorNative(), DB_common::errorCode()
*/
function fbsqlRaiseError($errno = null)
{
if ($errno === null) {
$errno = $this->errorCode(fbsql_errno($this->connection));
}
return $this->raiseError($errno, null, null, null, @fbsql_error($this->connection));
}
开发者ID:roojs,项目名称:pear,代码行数:19,代码来源:fbsql.php
示例3: error
public function error()
{
if (!empty($this->connect)) {
return fbsql_error($this->connect);
} else {
return false;
}
}
开发者ID:Allopa,项目名称:ZN-Framework-Starter,代码行数:8,代码来源:FbsqlDriver.php
示例4: fbsqlRaiseError
/**
* This method is used to communicate an error and invoke error
* callbacks etc. Basically a wrapper for MDB::raiseError
* that checks for native error msgs.
*
* @param integer $errno error code
* @param string $message userinfo message
* @return object a PEAR error object
* @access public
* @see PEAR_Error
*/
function fbsqlRaiseError($errno = NULL, $message = NULL)
{
if ($errno == NULL) {
if ($this->connection) {
$errno = @fbsql_errno($this->connection);
} else {
$errno = @fbsql_errno();
}
}
if ($this->connection) {
$error = @fbsql_errno($this->connection);
} else {
$error = @fbsql_error();
}
return $this->raiseError($this->errorCode($errno), NULL, NULL, $message, $error);
}
开发者ID:Esleelkartea,项目名称:kz-adeada-talleres-electricos-,代码行数:27,代码来源:fbsql.php
示例5: errorInfo
/**
* This method is used to collect information about an error
*
* @param integer $error
* @return array
* @access public
*/
function errorInfo($error = null)
{
if ($this->connection) {
$native_code = @fbsql_errno($this->connection);
$native_msg = @fbsql_error($this->connection);
} else {
$native_code = @fbsql_errno();
$native_msg = @fbsql_error();
}
if (null === $error) {
static $ecode_map;
if (empty($ecode_map)) {
$ecode_map = array(22 => MDB2_ERROR_SYNTAX, 85 => MDB2_ERROR_ALREADY_EXISTS, 108 => MDB2_ERROR_SYNTAX, 116 => MDB2_ERROR_NOSUCHTABLE, 124 => MDB2_ERROR_VALUE_COUNT_ON_ROW, 215 => MDB2_ERROR_NOSUCHFIELD, 217 => MDB2_ERROR_INVALID_NUMBER, 226 => MDB2_ERROR_NOSUCHFIELD, 231 => MDB2_ERROR_INVALID, 239 => MDB2_ERROR_TRUNCATED, 251 => MDB2_ERROR_SYNTAX, 266 => MDB2_ERROR_NOT_FOUND, 357 => MDB2_ERROR_CONSTRAINT_NOT_NULL, 358 => MDB2_ERROR_CONSTRAINT, 360 => MDB2_ERROR_CONSTRAINT, 361 => MDB2_ERROR_CONSTRAINT);
}
if (isset($ecode_map[$native_code])) {
$error = $ecode_map[$native_code];
}
}
return array($error, $native_code, $native_msg);
}
开发者ID:Dulciane,项目名称:jaws,代码行数:27,代码来源:fbsql.php
注:本文中的fbsql_error函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论