We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91483d5 commit 2c4a7aeCopy full SHA for 2c4a7ae
lib/ecto/adapters/exqlite/connection.ex
@@ -1522,13 +1522,15 @@ defmodule Ecto.Adapters.Exqlite.Connection do
1522
defp options_expr(options), do: [?\s, to_string(options)]
1523
1524
defp reference_expr(%Reference{} = ref, table, name) do
1525
+ {_, reference_columns} = Enum.unzip([{name, ref.column} | ref.with])
1526
+
1527
[
1528
" CONSTRAINT ",
1529
reference_name(ref, table, name),
1530
" REFERENCES ",
- quote_table(table.prefix, ref.table),
1531
+ quote_table(ref.prefix || table.prefix, ref.table),
1532
?(,
- quote_name(ref.column),
1533
+ quote_names(reference_columns),
1534
?),
1535
reference_on_delete(ref.on_delete),
1536
reference_on_update(ref.on_update)
0 commit comments