本文整理汇总了PHP中ifx_getsqlca函数的典型用法代码示例。如果您正苦于以下问题:PHP ifx_getsqlca函数的具体用法?PHP ifx_getsqlca怎么用?PHP ifx_getsqlca使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了ifx_getsqlca函数的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _insertid
function _insertid()
{
$sqlca = ifx_getsqlca($this->lastQuery);
return @$sqlca["sqlerrd1"];
}
示例2: last_insert_id
/**
* Devuelve el ultimo id autonumerico generado en la BD
*
* @return int
*/
public function last_insert_id($table = '', $primary_key = '')
{
$sqlca = ifx_getsqlca($this->last_result_query);
return $sqlca["sqlerrd1"];
}
示例3: last_insert_id
/**
* Devuelve el ultimo id autonumerico generado en la BD
*
* @return int
*/
public function last_insert_id($table = '', $primary_key = '')
{
if (!$this->id_connection) {
return false;
}
$sqlca = ifx_getsqlca($this->last_result_query);
return $sqlca["sqlerrd1"];
}
示例4: GetSequenceNextValue
function GetSequenceNextValue($name, &$value)
{
if (!($result = $this->DoQuery("INSERT INTO _sequence_{$name} (sequence) VALUES (0)", 0, 0, 0))) {
return 0;
}
if (isset($this->options["Use8ByteIntegers"]) && $this->options["Use8ByteIntegers"]) {
ifx_free_result($result);
if (!($result = $this->DoQuery("SELECT dbinfo('serial8') FROM _sequence_{$name}"))) {
return 0;
}
$value = intval($this->FetchResult($result, 0, 0));
$this->FreeResult($result);
if ($this->auto_commit && isset($this->options["Logging"]) && !strcmp($this->options["Logging"], "ANSI") && !$this->DoQuery("COMMIT")) {
return 0;
}
} else {
$sqlca = ifx_getsqlca($result);
$value = $sqlca["sqlerrd1"];
ifx_free_result($result);
}
if (!$this->Query("DELETE FROM _sequence_{$name} WHERE sequence<{$value}")) {
$this->warning = "could delete previous sequence table values";
}
return 1;
}