Revision: 1565
http://mrbs.svn.sourceforge.net/mrbs/?rev=1565&view=rev
Author: cimorrison
Date: 2010-11-02 11:27:15 +0000 (Tue, 02 Nov 2010)
Log Message:
-----------
Fixed bug causing upgrade error using PostgreSQL
Modified Paths:
--------------
mrbs/trunk/web/upgrade/15/post.inc
Modified: mrbs/trunk/web/upgrade/15/post.inc
===================================================================
--- mrbs/trunk/web/upgrade/15/post.inc 2010-11-02 10:10:28 UTC (rev 1564)
+++ mrbs/trunk/web/upgrade/15/post.inc 2010-11-02 11:27:15 UTC (rev 1565)
@@ -28,13 +28,13 @@
$sql_val = "'" . addslashes($area_defaults[$key]) . "'";
}
$sql = "UPDATE $tbl_area SET $key=$sql_val WHERE $key IS NULL";
+ $res = sql_command($sql);
+ if ($res == -1)
+ {
+ // No need to localise, should never happen
+ print "<span class=\"error\">Failed to set default value for column
'$key' in area table.</span><br>";
+ }
}
- $res = sql_command($sql);
- if ($res == -1)
- {
- // No need to localise, should never happen
- print "<span class=\"error\">Failed to set default value for column '$key'
in area table.</span><br>";
- }
}
?>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits