Ecto/Postgrex triggering ERROR 08P01 (protocol_violation) SimpleQuery not allowed while in extended protocol mode #50858
Labels
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
O-community
Originated from the community
X-blathers-triaged
blathers was able to find an owner
Describe the problem
Attempting a basic query from my unit testing framework ExUnit (using Elixir/Ecto/Postgrex). This is a very basic test that simply queries the database (logs included below).
To Reproduce
Queries ran during test:
Expected behavior
Rows returned as requested. Note, this does work in a non-unit testing environment. I am able to write these queries and execute them interactively just fine, something strange is happening under test. This could be related to how they manage SQL sandboxes in Ecto? https://hexdocs.pm/ecto_sql/Ecto.Adapters.SQL.Sandbox.html#content
Additional data / screenshots
Table def:
Environment:
Cockroach version:
Build Tag: v20.1.3
Build Time: 2020/06/23 08:49:00
Distribution: CCL
Platform: linux amd64 (x86_64-unknown-linux-musl)
Go Version: go1.13.9
C Compiler: gcc 6.3.0
Build SHA-1: 7fd454f
Build Type: release
Additional context
This is very similar to what I've seen here: #41511.
Maybe should be tracked here? #33441
The text was updated successfully, but these errors were encountered: