You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stored procedures can return records with named columns:
2018-10-24 11:34 qnetdb=> \df XXX
List of functions
Schema | Name | Result data type | Argument data types | Type
--------+-------+------------------+--------------------------------------+--------
public | WWW | record | XXX, OUT YYY bigint, OUT ZZZ boolean | normal
It is possible to get specific columns with indirection, basicly wrapping the call to the stored procedure in parentheses and treating it like something with columns:
Stored procedures can return records with named columns:
It is possible to get specific columns with indirection, basicly wrapping the call to the stored procedure in parentheses and treating it like something with columns:
This is being parsed:
(This is why I called this "indirection", I really had no idea what it was called before)
But deparsing this drops the parentheses:
This is still valid SQL, but is interpreted as
SELECT www(1) AS zzz
The text was updated successfully, but these errors were encountered: