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 f90281e commit a2b5dbaCopy full SHA for a2b5dba
lib/myxql/connection.ex
@@ -366,8 +366,8 @@ defmodule MyXQL.Connection do
366
end
367
368
defp error(reason, statement, state) do
369
- exception = error(reason)
370
- %MyXQL.Error{exception | statement: statement, connection_id: state.client.connection_id}
+ %MyXQL.Error{} = exception = error(reason)
+ %{exception | statement: statement, connection_id: state.client.connection_id}
371
372
373
defp error(err_packet(code: code, message: message)) do
0 commit comments