Implement the multi_field case #314

This commit is contained in:
Rafa de la Torre 2016-12-13 17:00:55 +01:00
parent e53a39875e
commit dbd5911a2a

View File

@ -27,8 +27,14 @@ BEGIN
RAISE WARNING 'whatever'; RAISE WARNING 'whatever';
END; END;
<% elsif multi_field %> <% elsif multi_field %>
SELECT * FROM <%= DATASERVICES_CLIENT_SCHEMA %>._<%= name %>(<%= ['username', 'orgname'].concat(params).join(', ') %>) INTO ret; BEGIN
RETURN ret; SELECT * FROM <%= DATASERVICES_CLIENT_SCHEMA %>._<%= name %>(<%= ['username', 'orgname'].concat(params).join(', ') %>) INTO 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;