We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We were experimenting with node-postgres and found that columns were lost in the result set if they had the same name, because of how JSON works.
node-postgres
However, after switching to array we don't apparently have any way of knowing the column names. Is there a way of doing this or is this a shortfall?
array
(for context, in this scenario, we don't know the query we're running)
The text was updated successfully, but these errors were encountered:
It looks like result.fields should continue to work (an array of field descriptions with name properties).
result.fields
name
Sorry, something went wrong.
Sorry, should have mentioned, I'm using cursor here. Given cursor.read(n) returns rows it's not clear how to also get column names.
cursor
cursor.read(n)
Oofff yeh that might have been an oversight on my part. I'll leave this open so I can get to remedying this in some way in the near future.
No branches or pull requests
We were experimenting with
node-postgres
and found that columns were lost in the result set if they had the same name, because of how JSON works.However, after switching to
array
we don't apparently have any way of knowing the column names. Is there a way of doing this or is this a shortfall?(for context, in this scenario, we don't know the query we're running)
The text was updated successfully, but these errors were encountered: