Open dlindenkreuz opened 11 months ago
hmm that does seem wrong. I'll look into this.
Can you provide an abbreviated schema for Symbol
? I'm going to pull together a test to demonstrate the bug.
Sure!
defmodule MyApp.Symbols.Symbol do
use Ecto.Schema
@primary_key false
schema "symbol" do
field :group_name, :string, primary_key: true
field :name, :string, primary_key: true
end
end
@warmwaffles Did you get around to this? I didn't find a workaround on my end 😿
I have not yet. I'll try to get to it soon.
I am trying to use the
values/2
macro to filter results by matching compound keys (group_name, name
).With SQLite, this error is raised:
I added a debug statement to
ecto_sqlite3
to print the arguments ofquote_table/2
:[(ecto_sqlite3 0.13.0) lib/ecto/adapters/sqlite3/connection.ex:1893: Ecto.Adapters.SQLite3.Connection.quote_table/2] {prefix, name} #=> {[[group_name: :string, name: :string], 2], :values}
The
prefix
var contains the types keyword list fromvalues
invocation and2
indicating the number of rows. Looks like this doesn't belong there?