Further propagating a syntax correction; SQL functions cannot reference
authorscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Oct 2010 14:32:01 +0000 (14:32 +0000)
committerscottmk <scottmk@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 6 Oct 2010 14:32:01 +0000 (14:32 +0000)
their parameters by name.

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

git-svn-id: svn://svn.open-ils.org/ILS/trunk@18202 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index a526c7f..08b253d 100644 (file)
@@ -373,11 +373,11 @@ END;
 $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;