mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
postgresql 접속 체크 부분에 fd값이 null일때 접속을 하지 못한 것으로 취급되도록 코드 변경
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3930 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
dcfe3e09bb
commit
bffbc9d345
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@
|
||||||
|
|
||||||
// 접속시도
|
// 접속시도
|
||||||
$this->fd = @pg_connect($conn_string);
|
$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");
|
$this->setError(-1, "CONNECTION FAILURE");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue