elixir-ecto / myxql

MySQL 5.5+ driver for Elixir
Apache License 2.0
273 stars 67 forks source link

add `ER_SIGNAL_EXCEPTION` for unhandled user-defined exceptions #192

Closed petermueller closed 3 months ago

petermueller commented 3 months ago

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 commented 3 months ago

This is related to https://github.com/elixir-ecto/ecto_sql/pull/627, and is used in testing for the custom constraint handler in that PR

wojtekmach commented 3 months ago

Thank you!