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

SimpleQuery request to 'SET TIME ZONE' generates an exception #115

Closed
Jerry-Carter opened this issue Jul 15, 2020 · 1 comment · Fixed by #116
Closed

SimpleQuery request to 'SET TIME ZONE' generates an exception #115

Jerry-Carter opened this issue Jul 15, 2020 · 1 comment · Fixed by #116
Labels
bug Something isn't working

Comments

@Jerry-Carter
Copy link
Contributor

Jerry-Carter commented Jul 15, 2020

try conn.simpleQuery("SET TIME ZONE INTERVAL '+5:45' HOUR TO MINUTE").wait()

This line generates a message with identifier 'S' and produces an exception in PostgresSimpleQuery::respond(to:). Specifically,

throw PostgresError.protocol("Unexpected message during simple query: \(message)") 
@tanner0101
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants