Implement the multi_field case #314
This commit is contained in:
parent
e53a39875e
commit
dbd5911a2a
@ -27,8 +27,14 @@ BEGIN
|
|||||||
RAISE WARNING 'whatever';
|
RAISE WARNING 'whatever';
|
||||||
END;
|
END;
|
||||||
<% elsif multi_field %>
|
<% elsif multi_field %>
|
||||||
|
BEGIN
|
||||||
SELECT * FROM <%= DATASERVICES_CLIENT_SCHEMA %>._<%= name %>(<%= ['username', 'orgname'].concat(params).join(', ') %>) INTO ret;
|
SELECT * FROM <%= DATASERVICES_CLIENT_SCHEMA %>._<%= name %>(<%= ['username', 'orgname'].concat(params).join(', ') %>) INTO ret;
|
||||||
RETURN ret;
|
RETURN ret;
|
||||||
|
EXCEPTION
|
||||||
|
WHEN OTHERS THEN
|
||||||
|
RAISE WARNING 'whatever';
|
||||||
|
RETURN ret;
|
||||||
|
END;
|
||||||
<% else %>
|
<% else %>
|
||||||
BEGIN
|
BEGIN
|
||||||
SELECT <%= DATASERVICES_CLIENT_SCHEMA %>._<%= name %>(<%= ['username', 'orgname'].concat(params).join(', ') %>) INTO ret;
|
SELECT <%= DATASERVICES_CLIENT_SCHEMA %>._<%= name %>(<%= ['username', 'orgname'].concat(params).join(', ') %>) INTO ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user