From 5ac1bf6e4419ed5d6bd2572e0750f87a08d967d0 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 15 Oct 2009 00:07:17 +0000 Subject: [PATCH] thinko on the datatype for bib id git-svn-id: svn://svn.open-ils.org/ILS/trunk@14429 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/sql/Pg/030.schema.metabib.sql | 4 ++-- .../src/sql/Pg/upgrade/0035.schema.extract_metabib_field_entry.sql | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Open-ILS/src/sql/Pg/030.schema.metabib.sql b/Open-ILS/src/sql/Pg/030.schema.metabib.sql index c75ba6a86f..cab6a85eee 100644 --- a/Open-ILS/src/sql/Pg/030.schema.metabib.sql +++ b/Open-ILS/src/sql/Pg/030.schema.metabib.sql @@ -284,7 +284,7 @@ CREATE TYPE metabib.field_entry_template AS ( value TEXT ); -CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( rid INT, default_joiner TEXT ) RETURNS SETOF metabib.field_entry_template AS $func$ +CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( rid BIGINT, default_joiner TEXT ) RETURNS SETOF metabib.field_entry_template AS $func$ DECLARE bib biblio.record_entry%ROWTYPE; idx config.metabib_field%ROWTYPE; @@ -343,7 +343,7 @@ END; $func$ LANGUAGE PLPGSQL; -- default to a space joiner -CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( INT ) RETURNS SETOF metabib.field_entry_template AS $func$ +CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( BIGINT ) RETURNS SETOF metabib.field_entry_template AS $func$ SELECT * FROM biblio.extract_metabib_field_entry($1, ' '); $func$ LANGUAGE SQL; diff --git a/Open-ILS/src/sql/Pg/upgrade/0035.schema.extract_metabib_field_entry.sql b/Open-ILS/src/sql/Pg/upgrade/0035.schema.extract_metabib_field_entry.sql index 41c82d0235..a791db7070 100644 --- a/Open-ILS/src/sql/Pg/upgrade/0035.schema.extract_metabib_field_entry.sql +++ b/Open-ILS/src/sql/Pg/upgrade/0035.schema.extract_metabib_field_entry.sql @@ -71,7 +71,7 @@ CREATE TYPE metabib.field_entry_template AS ( value TEXT ); -CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( rid INT, default_joiner TEXT ) RETURNS SETOF metabib.field_entry_template AS $func$ +CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( rid BIGINT, default_joiner TEXT ) RETURNS SETOF metabib.field_entry_template AS $func$ DECLARE bib biblio.record_entry%ROWTYPE; idx config.metabib_field%ROWTYPE; @@ -130,7 +130,7 @@ END; $func$ LANGUAGE PLPGSQL; -- default to a space joiner -CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( INT ) RETURNS SETOF metabib.field_entry_template AS $func$ +CREATE OR REPLACE FUNCTION biblio.extract_metabib_field_entry ( BIGINT ) RETURNS SETOF metabib.field_entry_template AS $func$ SELECT * FROM biblio.extract_metabib_field_entry($1, ' '); $func$ LANGUAGE SQL; -- 2.11.0