PHP Classes

PostgreSQL Fix

Recommend this page to a friend!

      database class  >  All threads  >  PostgreSQL Fix  >  (Un) Subscribe thread alerts  
Subject:PostgreSQL Fix
Summary:2 lines in database.class.php has to be changed to PgSQL works
Messages:3
Author:Daniel A Domingues
Date:2007-09-13 17:18:36
Update:2010-12-28 23:46:37
 

  1. PostgreSQL Fix   Reply   Report abuse  
Picture of Daniel A Domingues Daniel A Domingues - 2007-09-13 17:18:36
Hi!

When we use PostgreSQL database, it runs the same way that odbc.

So in 2 lines i had to change:


145: if(($this->database_type!="odbc") && ($this->database_type!="pg")){

186: if(($this->database_type=="odbc") || ($this->database_type=="pg")){



Now it's perfect!!!! ;) [to pgsql, off course]

  2. Re: PostgreSQL Fix   Reply   Report abuse  
Picture of Suleman Ahmad Suleman Ahmad - 2010-12-14 10:11:04 - In reply to message 1 from Daniel A Domingues
Hi,
well for postgre

  3. Re: PostgreSQL Fix   Reply   Report abuse  
Picture of Esteban Esteban - 2010-12-28 23:46:38 - In reply to message 1 from Daniel A Domingues
Im use postgress to, and the class is realy very very easy to use, but don accept multiples sql_statmens, just does one $db->query(sql_statement); at the time, i hope you can resolve this problem.