Skip to content

Commit

Permalink
add MySQL 8 check constraint error number (#187)
Browse files Browse the repository at this point in the history
  • Loading branch information
petermueller authored Jul 1, 2024
1 parent 2c17ba5 commit ca3e4ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/myxql/protocol/server_error_codes.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ defmodule MyXQL.Protocol.ServerErrorCodes do
{1452, :ER_NO_REFERENCED_ROW_2},
{1461, :ER_MAX_PREPARED_STMT_COUNT_REACHED},
{1792, :ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION},
{1836, :ER_READ_ONLY_MODE}
{1836, :ER_READ_ONLY_MODE},
{3819, :ER_CHECK_CONSTRAINT_VIOLATED}
]

codes = default_codes ++ codes_from_config
Expand Down

0 comments on commit ca3e4ad

Please sign in to comment.