[Cs-webapplibs-commits] SF.net SVN: cs-webapplibs:[158] trunk/0.3/cs_webdbupgrade.class.php
Status: Beta
Brought to you by:
crazedsanity
From: <cra...@us...> - 2009-11-17 01:54:49
|
Revision: 158 http://cs-webapplibs.svn.sourceforge.net/cs-webapplibs/?rev=158&view=rev Author: crazedsanity Date: 2009-11-17 01:54:40 +0000 (Tue, 17 Nov 2009) Log Message: ----------- Fix situation where database version is not returned. /cs_webdbupgrade.class.php: * get_database_version(): -- calls itself if it has to load the database tables. -- NOTE::: this could possibly cause an infinite loop or a deadlock if loading the database tables is done incorrectly (though I am not sure how to test for that scenario). Modified Paths: -------------- trunk/0.3/cs_webdbupgrade.class.php Modified: trunk/0.3/cs_webdbupgrade.class.php =================================================================== --- trunk/0.3/cs_webdbupgrade.class.php 2009-11-09 18:48:26 UTC (rev 157) +++ trunk/0.3/cs_webdbupgrade.class.php 2009-11-17 01:54:40 UTC (rev 158) @@ -543,9 +543,7 @@ //add the table... $loadTableResult = $this->load_table(); if($loadTableResult === TRUE) { - //now try the SQL... - $numrows = $this->db->exec($sql); - $dberror = $this->db->errorMsg(); + $retval = $this->get_database_version(); } else { $this->error_handler(__METHOD__ .": no table in database, failed to create one... ORIGINAL " . This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |