[open-ils-commits] r10271 - branches/rel_1_2_3/Open-ILS/src/sql/Pg
svn at svn.open-ils.org
svn at svn.open-ils.org
Tue Aug 5 22:00:31 EDT 2008
Author: miker
Date: 2008-08-05 22:00:25 -0400 (Tue, 05 Aug 2008)
New Revision: 10271
Modified:
branches/rel_1_2_3/Open-ILS/src/sql/Pg/1.2.2.3-1.2.3.0-upgrade.sql
Log:
improving local TCN value generator to avoid conflicts with id-as-TCN cases
Modified: branches/rel_1_2_3/Open-ILS/src/sql/Pg/1.2.2.3-1.2.3.0-upgrade.sql
===================================================================
--- branches/rel_1_2_3/Open-ILS/src/sql/Pg/1.2.2.3-1.2.3.0-upgrade.sql 2008-08-06 01:52:44 UTC (rev 10270)
+++ branches/rel_1_2_3/Open-ILS/src/sql/Pg/1.2.2.3-1.2.3.0-upgrade.sql 2008-08-06 02:00:25 UTC (rev 10271)
@@ -20,6 +20,11 @@
ALTER TABLE config.rule_max_fine ADD COLUMN is_percent BOOL NOT NULL DEFAULT FALSE;
+CREATE OR REPLACE FUNCTION biblio.next_autogen_tcn_value () RETURNS TEXT AS $$
+ BEGIN RETURN 'AUTOGENERATED-' || nextval('biblio.autogen_tcn_value_seq'::TEXT); END;
+$$ LANGUAGE PLPGSQL;
+
+
CREATE OR REPLACE FUNCTION search.staged_fts (
param_search_ou INT,
More information about the open-ils-commits
mailing list