Пример #1
0
 protected function _close()
 {
     pg_disconnect($this->_connection);
 }
 public function disconnectFromDb()
 {
   if ($this->m_isConnect == true and $this->m_isPersist == false) {
     if (pg_disconnect($this->m_pgCon) == false) {
       throw new CError(ERROR_SQL_DISCONNECT, array($this->getErrorStr()));
     }
   }
 }