[open-ils-commits] r18755 - trunk/Open-ILS/src/sql/Pg (miker)
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Nov 16 11:51:52 EST 2010
Author: miker
Date: 2010-11-16 11:51:49 -0500 (Tue, 16 Nov 2010)
New Revision: 18755
Modified:
trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
Log:
and ... we do not need GREATEST()
Modified: trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql 2010-11-16 16:50:31 UTC (rev 18754)
+++ trunk/Open-ILS/src/sql/Pg/1.6.1-2.0-upgrade-db.sql 2010-11-16 16:51:49 UTC (rev 18755)
@@ -30,7 +30,7 @@
INSERT INTO config.upgrade_log (version) VALUES ('0461');
-- Push the auri serial in case it's out of date
-SELECT SETVAL('asset.uri'::TEXT, GREATEST((SELECT MAX(id) + 1 FROM asset.uri)));
+SELECT SETVAL('asset.uri'::TEXT, (SELECT MAX(id) + 1 FROM asset.uri));
-- Remove some uses of the connectby() function from the tablefunc contrib module
CREATE OR REPLACE FUNCTION actor.org_unit_descendants( INT, INT ) RETURNS SETOF actor.org_unit AS $$
More information about the open-ils-commits
mailing list