Skip to content

add ER_SIGNAL_EXCEPTION for unhandled user-defined exceptions#192

Merged
wojtekmach merged 1 commit intoelixir-ecto:masterfrom
petermueller:pkm/add-signal-constraint-error
Jul 29, 2024
Merged

add ER_SIGNAL_EXCEPTION for unhandled user-defined exceptions#192
wojtekmach merged 1 commit intoelixir-ecto:masterfrom
petermueller:pkm/add-signal-constraint-error

Conversation

@petermueller
Copy link
Copy Markdown
Contributor

allows passing the ER_SIGNAL_EXCEPTION name for MyXQL.Error

This is the typical error number suggested for creating custom exceptions, usually from procedures or triggers.

It is supported by MySQL 8.x, MySQL 5.x, and MariaDB

@petermueller
Copy link
Copy Markdown
Contributor Author

This is related to elixir-ecto/ecto_sql#627, and is used in testing for the custom constraint handler in that PR

@wojtekmach wojtekmach merged commit 1f370f7 into elixir-ecto:master Jul 29, 2024
@wojtekmach
Copy link
Copy Markdown
Member

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants