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
Fix pg v7 regressions #8029
Fix pg v7 regressions #8029
Conversation
@felixfbecker The fields will come from the first result that contains them. The rows are the concatenation of all rows from all results. The rowCount is the accumulation of all non Also, when the query is raw with no type, the metadata might be an array ( possible breaking change ). But I'm not sure what others would expect of this. We explicitly notify the users that the results and metadata are dialect specific. so This is expected I guess. Right? |
@4e1ovek That won't always work. Some queries might have their main stuff in the second statement. |
I don't mean to be one of those entitled devs, but can contribs/maintainers take this one a bit more seriously and get a fix, or at least a documented workaround, merged? Broken enums is a huge problem. |
@corysimmons downgrade to pg 6 for now. it's not just the enums that are broken. Any multi-statement query will fail. |
@alitaheri So |
@corysimmons You don't need P.S. pg and pg-native are installed here only for testing purposes. |
Thanks Ali. Maybe we can update the README with a warning about pg7 while a fix is in the works? |
Is there anything that needs to be done to get this into a mergable state (besides rebasing package.json)? |
Do you intend to merge this pull request? |
This hacks around #7998.
I wrote a function which squashes the results returned by pg. except for when raw query doesn't have a type. In that case it returns whatever returned by pg (I don't think we should change this behavior).
This is a temporary fix until we come up with a solution that satisfies every use-case. Might require architectural changes. Since other dialects support multiple statements too.
Until then this fixes #7998