Skip to content

Commit

Permalink
MySQL split constraint message on backtick quotes (#504)
Browse files Browse the repository at this point in the history
  • Loading branch information
greg-rychlewski authored Apr 8, 2023
1 parent 3b08104 commit 8236dfd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ecto/adapters/myxql/connection.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8236dfd

Please sign in to comment.