cubrid_get_query_timeout

(PECL CUBRID >= 8.4.1)

cubrid_get_query_timeoutGet the query timeout value of the request

说明

cubrid_get_query_timeout ( resource $req_identifier ) : int

The cubrid_get_query_timeout() function is used to get the query timeout of the request.

参数

req_identifier

Request identifier.

返回值

Success: the query timeout value of the current request. Units of msec.

Failure: FALSE

范例

Example #1 cubrid_get_query_timeout() example

<?php

$host 
"localhost";
$port 33000;
$db "demodb";

$conn =
cubrid_connect_with_url("CUBRID:$host:$port:$db:::?login_timeout=50000&query_timeout=5000&disconnect_on_query_timeout=yes");

$req cubrid_prepare($conn"SELECT * FROM code");

$timeout cubrid_get_query_timeout($req);
var_dump($timeout);

cubrid_set_query_timeout($req1000);
$timeout cubrid_get_query_timeout($req);
var_dump($timeout);

cubrid_close($conn);
?>

以上例程会输出:

int(5000)
int(1000)

参见

相关文章
php cubrid 函数 close the request handlephp cubrid 函数 close the request handlephp cubrid mysql 兼容性函数 return the numerical value of the error message from previous cubrid operationphp cubrid 函数 get the query timeout value of the requestphp cubrid 函数 get result of next query when executing multiple sql statementsphp cubrid mysql 兼容性函数 send a cubrid queryphp cubrid mysql 兼容性函数 return the value of a specific field in a specific rowphp cubrid 函数 update the element value of sequence type column using oidphp cubrid 函数 set the timeout time of query executionphp cubrid mysql 兼容性函数 perform a query without fetching the results into memoryphp ibm db2 函数 returns the auto generated id of the last insert query that successfully executed on this connectionphp frontbase 函数 send a frontbase queryphp fdf 函数 set the value of a fieldphp ingres 函数 get the return value from a procedure callphp maxdb 函数 enforce execution of a query on the master in a master/slave setupphp maxdb 函数 transfers a result set from the last queryphp 函数 returns the php representation of a bson valuephp sqlite 函数 executes a query and returns either an array for one single column or the value of the first rowphp hyperwave api 函数 returns value of attributephp sdo das relational 函数 executes an sql query passed as a prepared statement with a list of values to substitute for placeholders and return the results as a normalised data graph
关注编程学问公众号