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

conn#readReadyForQuery(): on error (E) message throw that specific error #1136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 10, 2023

  1. conn#readReadyForQuery(): on error (E) message throw that specific error

    not a generic one, so that the application can decide how to handle it.
    Sure it is an "unexpected message", but not a protocol error:
    
    > A frontend must be prepared to accept ErrorResponse and NoticeResponse
    > messages whenever it is expecting any other type of message.
    
    -- https://www.postgresql.org/docs/current/protocol-flow.html
    Al2Klimov committed Aug 10, 2023
    Configuration menu
    Copy the full SHA
    b7fc3eb View commit details
    Browse the repository at this point in the history