[open-ils-commits] r18202 - trunk/Open-ILS/src/sql/Pg (scottmk)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Oct 6 10:32:04 EDT 2010


Author: scottmk
Date: 2010-10-06 10:32:01 -0400 (Wed, 06 Oct 2010)
New Revision: 18202

Modified:
   trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql
Log:
Further propagating a syntax correction; SQL functions cannot reference
their parameters by name.

M    Open-ILS/src/sql/Pg/110.hold_matrix.sql


Modified: trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql
===================================================================
--- trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql	2010-10-06 14:31:57 UTC (rev 18201)
+++ trunk/Open-ILS/src/sql/Pg/110.hold_matrix.sql	2010-10-06 14:32:01 UTC (rev 18202)
@@ -373,11 +373,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