Revision: 1567
http://mrbs.svn.sourceforge.net/mrbs/?rev=1567&view=rev
Author: cimorrison
Date: 2010-11-02 11:32:42 +0000 (Tue, 02 Nov 2010)
Log Message:
-----------
Fixed bug causing upgrade error using PostgreSQL
Modified Paths:
--------------
mrbs/branches/provisional_bookings_new_style/web/upgrade/21/post.inc
Modified: mrbs/branches/provisional_bookings_new_style/web/upgrade/21/post.inc
===================================================================
--- mrbs/branches/provisional_bookings_new_style/web/upgrade/21/post.inc
2010-11-02 11:30:57 UTC (rev 1566)
+++ mrbs/branches/provisional_bookings_new_style/web/upgrade/21/post.inc
2010-11-02 11:32:42 UTC (rev 1567)
@@ -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