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

ERROR 08P01 (protocol_violation) SimpleQuery not allowed while in extended protocol mode #513

Closed
perezd opened this issue Jul 1, 2020 · 2 comments

Comments

@perezd
Copy link

perezd commented Jul 1, 2020

I've got a very basic Ecto schema setup with CockroachDB and I'm getting this error only in unit testing contexts, works totally fine in iex as well as queries performed by phoenix over HTTP.

Here's an extensive report of what I found, I notified CockroachDB about this as I suspect this is actually their problem, but wanted to raise this here in case there was a potential workaround postgrex might be able to introduce:
cockroachdb/cockroach#50858

@perezd
Copy link
Author

perezd commented Jul 2, 2020

Could this have something to do with the Sandbox adapter given that it works fine in iex and phoenix?
EDIT: I can confirm that my tests can make queries if I disable the sandbox.

@perezd
Copy link
Author

perezd commented Jul 9, 2020

This was resolved by CockroachDB:
cockroachdb/cockroach#33693 (comment)

@perezd perezd closed this as completed Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant