postgresql 접속 체크 부분에 fd값이 null일때 접속을 하지 못한 것으로 취급되도록 코드 변경

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3930 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2008-03-14 02:21:26 +00:00
parent dcfe3e09bb
commit bffbc9d345

View file

@ -84,7 +84,7 @@
// 접속시도
$this->fd = @pg_connect($conn_string);
if(pg_connection_status($this->fd) != PGSQL_CONNECTION_OK) {
if(!$this->fd || pg_connection_status($this->fd) != PGSQL_CONNECTION_OK) {
$this->setError(-1, "CONNECTION FAILURE");
return;
}