From 8236dfd8a24b5f3242f2c5ec6dcaaf203c764aaa Mon Sep 17 00:00:00 2001 From: Greg Rychlewski Date: Sat, 8 Apr 2023 02:57:42 -0400 Subject: [PATCH] MySQL split constraint message on backtick quotes (#504) --- lib/ecto/adapters/myxql/connection.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ecto/adapters/myxql/connection.ex b/lib/ecto/adapters/myxql/connection.ex index b9415462..bae89447 100644 --- a/lib/ecto/adapters/myxql/connection.ex +++ b/lib/ecto/adapters/myxql/connection.ex @@ -44,7 +44,7 @@ if Code.ensure_loaded?(MyXQL) do MyXQL.stream(conn, sql, params, opts) end - @quotes ~w(" ') + @quotes ~w(" ' `) @impl true def to_constraints(%MyXQL.Error{mysql: %{name: :ER_DUP_ENTRY}, message: message}, opts) do