Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting field information in decode_fun/2 when no rows are returned #47

Open
bryanhughes opened this issue Mar 23, 2021 · 0 comments
Open

Comments

@bryanhughes
Copy link

Is it possible to get the field information when no matching rows are returned. For example, selecting an empty table and providing the decode fun? decode_fun/2 provides a nice opportunity to describe a query but unfortunately it does not get called because of the receive_loop0/6 that matches on #no_data{} . When using psql (as well as other drivers like Go and Java) it returns the column names at minimum.

I am poking around the pgo_protocol.erl code, but am having a hard time tracking the DecodeOpts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant