Skip to content

Creating a prepared statement for a delete generates a fatalError #122

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

Closed
Jerry-Carter opened this issue Aug 19, 2020 · 1 comment · Fixed by #123
Closed

Creating a prepared statement for a delete generates a fatalError #122

Jerry-Carter opened this issue Aug 19, 2020 · 1 comment · Fixed by #123
Labels
bug Something isn't working

Comments

@Jerry-Carter
Copy link
Contributor

Jerry-Carter commented Aug 19, 2020

Prepared statements that do not return values appear to generate a fatalError.

database.prepare(query: "DELETE FROM my_table WHERE "MyIndex" = $1").wait()

Postgres responds with a message of type 110 (.noData) which trips the default case at

fatalError("Unexpected message: \(message)")

@tanner0101 tanner0101 added the bug Something isn't working label Aug 19, 2020
@Jerry-Carter
Copy link
Contributor Author

#123

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