PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

pg_connection_reset> <pg_connect
Last updated: Fri, 29 Aug 2008

view this page in

pg_connection_busy

(PHP 4 >= 4.2.0, PHP 5)

pg_connection_busy 接続がビジーかどうか調べる

説明

bool pg_connection_busy ( resource $connection )

pg_connection_busy() は、接続がビジーかどうかを調べます。 接続がビジーである場合、以前のクエリがまだ実行中です。 もしこの接続に pg_get_result() がコールされた場合、 それはブロックされます。

パラメータ

connection

PostgreSQL データベースの接続リソース。

返り値

接続がビジーの場合に TRUE 、そうでない場合に FALSE を返します。

例1 pg_connection_busy() の例

<?php
  $dbconn 
pg_connect("dbname=publisher") or die("Could not connect");
  
$bs pg_connection_busy($dbconn);
  if (
$bs) {
      echo 
'connection is busy';
  } else {
     echo 
'connection is not busy';
  }
?>



add a note add a note User Contributed Notes
pg_connection_busy
There are no user contributed notes for this page.

pg_connection_reset> <pg_connect
Last updated: Fri, 29 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites