[geeklog-cvs] geeklog-1.3/system lib-database.php,1.29,1.30

dhaun at iowaoutdoors.org dhaun at iowaoutdoors.org
Tue Jul 13 15:00:06 EDT 2004


Update of /var/cvs/geeklog-1.3/system
In directory www:/tmp/cvs-serv11002/system

Modified Files:
	lib-database.php 
Log Message:
Fixed description of DB_insertId() in lib-database.php and dbInsertId() in mysql.class.php: The functions take a resource as a parameter, not a record set (pointed out be lgonze on IRC).


Index: lib-database.php
===================================================================
RCS file: /var/cvs/geeklog-1.3/system/lib-database.php,v
retrieving revision 1.29
retrieving revision 1.30
diff -C2 -d -r1.29 -r1.30
*** lib-database.php	21 Mar 2004 20:53:32 -0000	1.29
--- lib-database.php	13 Jul 2004 19:00:03 -0000	1.30
***************
*** 400,414 ****
  * Returns the last ID inserted
  *
! * Returns the last auto_increment ID generated for recordset
  *
! * @param        object      $recordset      Recorset to operate on
! * @return       int         Returns the last ID auto-generated
  *
  */
! function DB_insertId($recordset='')
  {
      global $_DB;
  
!     return $_DB->dbInsertId($recordset);
  }
  
--- 400,414 ----
  * Returns the last ID inserted
  *
! * Returns the last auto_increment ID generated
  *
! * @param    resources   $link_identifier    identifier for opened link
! * @return   int                             Returns the last ID auto-generated
  *
  */
! function DB_insertId($link_identifier = '')
  {
      global $_DB;
  
!     return $_DB->dbInsertId($link_identifier);
  }
  




More information about the geeklog-cvs mailing list