[Cs-content-commits] SF.net SVN: cs-content:[409] trunk/1.0/cs_phpDB.class.php
PHP Templating & Includes System
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-07-20 21:57:34
|
Revision: 409 http://cs-content.svn.sourceforge.net/cs-content/?rev=409&view=rev Author: crazedsanity Date: 2009-07-20 21:57:33 +0000 (Mon, 20 Jul 2009) Log Message: ----------- Fix run_insert() to work with pgsql (accidentally removed). Modified Paths: -------------- trunk/1.0/cs_phpDB.class.php Modified: trunk/1.0/cs_phpDB.class.php =================================================================== --- trunk/1.0/cs_phpDB.class.php 2009-07-20 18:58:30 UTC (rev 408) +++ trunk/1.0/cs_phpDB.class.php 2009-07-20 21:57:33 UTC (rev 409) @@ -138,13 +138,13 @@ /** * Handles performing the insert statement & returning the last inserted ID. */ - public function run_insert($sql) { + public function run_insert($sql, $sequence='null') { $this->exec($sql); if($this->numAffected() == 1 && !strlen($this->errorMsg())) { //retrieve the ID just created. - $retval = $this->lastID(); + $retval = $this->lastID($sequence); } else { //something broke... This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |