[open-ils-commits] r18192 - trunk/Open-ILS/src/sql/Pg/upgrade (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Oct 6 09:27:28 EDT 2010
Author: scottmk
Date: 2010-10-06 09:27:26 -0400 (Wed, 06 Oct 2010)
New Revision: 18192
Modified:
trunk/Open-ILS/src/sql/Pg/upgrade/0428.schema.hold_retarget.sql
Log:
Fixed the second and third function definitions, which wouldn't compile.
An SQL function cannot reference its parameters by name, but only by number.
M Open-ILS/src/sql/Pg/upgrade/0428.schema.hold_retarget.sql
Modified: trunk/Open-ILS/src/sql/Pg/upgrade/0428.schema.hold_retarget.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/upgrade/0428.schema.hold_retarget.sql 2010-10-06 03:07:30 UTC (rev 18191)
+++ trunk/Open-ILS/src/sql/Pg/upgrade/0428.schema.hold_retarget.sql 2010-10-06 13:27:26 UTC (rev 18192)
@@ -182,11 +182,11 @@
$func$ LANGUAGE plpgsql;
CREATE OR REPLACE FUNCTION action.hold_request_permit_test( pickup_ou INT, request_ou INT, match_item BIGINT, match_user INT, match_requestor INT ) RETURNS SETOF action.matrix_test_result AS $func$
- SELECT * FROM action.hold_request_permit_test(pickup_ou, request_ou, match_item, match_user, match_requestor, FALSE);
+ SELECT * FROM action.hold_request_permit_test( $1, $2, $3, $4, $5, FALSE );
$func$ LANGUAGE SQL;
CREATE OR REPLACE FUNCTION action.hold_retarget_permit_test( pickup_ou INT, request_ou INT, match_item BIGINT, match_user INT, match_requestor INT ) RETURNS SETOF action.matrix_test_result AS $func$
- SELECT * FROM action.hold_request_permit_test(pickup_ou, request_ou, match_item, match_user, match_requestor, TRUE);
+ SELECT * FROM action.hold_request_permit_test( $1, $2, $3, $4, $5, TRUE );
$func$ LANGUAGE SQL;
COMMIT;
More information about the open-ils-commits
mailing list