phpgroupware-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpgroupware-cvs] api/db class.db_pgsql.php, 1.1.1.1.2.1, 1.1.1.1.2.2


From: Joseph Engo <address@hidden>
Subject: [Phpgroupware-cvs] api/db class.db_pgsql.php, 1.1.1.1.2.1, 1.1.1.1.2.2
Date: Mon, 27 Oct 2003 08:54:11 +0000

Update of /cvsroot/phpgroupware/api/db
In directory subversions:/tmp/cvs-serv13762/api/db

Modified Files:
      Tag: proposal-branch
        class.db_pgsql.php 
Log Message:
- Finished up user delete
- Apparently, PHP 4.2.0 and higher changed some naming for the PostgreSQL 
functions making db->affected_rows() break.  This is being looked into, this 
change is for now.


Index: class.db_pgsql.php
===================================================================
RCS file: /cvsroot/phpgroupware/api/db/class.db_pgsql.php,v
retrieving revision 1.1.1.1.2.1
retrieving revision 1.1.1.1.2.2
diff -C2 -d -r1.1.1.1.2.1 -r1.1.1.1.2.2
*** class.db_pgsql.php  23 Oct 2003 20:38:24 -0000      1.1.1.1.2.1
--- class.db_pgsql.php  27 Oct 2003 08:54:09 -0000      1.1.1.1.2.2
***************
*** 423,437 ****
                function affected_rows()
                {
!                       return  cmdtuples($this->Query_ID);
                }
  
                function num_rows()
                {
!                       return pg_numrows($this->Query_ID);
                }
  
                function num_fields()
                {
!                       return pg_numfields($this->Query_ID);
                }
  
--- 423,462 ----
                function affected_rows()
                {
!                       if (function_exists('cmdtuples'))
!                       {
!                               return cmdtuples($this->Query_ID);
!                       }
!                       else if (function_exists('pg_cmdtuples'))
!                       {
!                               return pg_cmdtuples($this->Query_ID);
!                       }
!                       else
!                       {
!                               return pg_affected_rows($this->Query_ID);
!                       }
                }
  
                function num_rows()
                {
!                       if (function_exists('pg_numrows'))
!                       {
!                               return pg_numrows($this->Query_ID);
!                       }
!                       else
!                       {
!                               return pg_num_rows($this->Query_ID);
!                       }
                }
  
                function num_fields()
                {
!                       if (function_exists('pg_numfields'))
!                       {
!                               return pg_numfields($this->Query_ID);
!                       }
!                       else
!                       {
!                               return pg_num_fields($this->Query_ID);
!                       }
                }
  





reply via email to

[Prev in Thread] Current Thread [Next in Thread]