changed CHANGELOG.md
 
@@ -1,5 +1,9 @@
1
1
# Changelog
2
2
3
+ ## v0.7.1 (2024-07-05)
4
+
5
+ * Add `:ER_CHECK_CONSTRAINT_VIOLATED` error code
6
+
3
7
## v0.7.0 (2024-05-20)
4
8
5
9
* Add `:enable_cleartext_plugin` option
changed README.md
 
@@ -82,25 +82,23 @@ See [Mariaex Compatibility](https://github.com/elixir-ecto/myxql/blob/master/MAR
82
82
83
83
## Data representation
84
84
85
- ```
86
- MySQL Elixir
87
- ----- ------
88
- NULL nil
89
- bool 1 | 0
90
- int 42
91
- float 42.0
92
- decimal #Decimal<42.0> # (1)
93
- date ~D[2013-10-12] # (2)
94
- time ~T[00:37:14] # (3)
95
- datetime ~N[2013-10-12 00:37:14] # (2), (4)
96
- timestamp ~U[2013-10-12 00:37:14Z] # (2), (4)
97
- json %{"foo" => "bar"} # (5)
98
- char "é"
99
- text "myxql"
100
- binary <<1, 2, 3>>
101
- bit <<1::size(1), 0::size(1)>>
102
- point, polygon, ... %Geo.Point{coordinates: {0.0, 1.0}}, ... # (6)
103
- ```
85
+ | MySQL | Elixir |
86
+ |-------------------------|-------------------------------------------------|
87
+ | `NULL` | `nil` |
88
+ | `bool` | `0`, `1` |
89
+ | `int` | `42` |
90
+ | `float` | `42.0` |
91
+ | `decimal` | `#Decimal<42.0>` (1) |
92
+ | `date` | `~D[2013-10-12]` (2) |
93
+ | `time` | `~T[00:37:14]` (3) |
94
+ | `datetime` | `~N[2013-10-12 00:37:14]` (2), (4) |
95
+ | `timestamp` | `~U[2013-10-12 00:37:14Z]` (2), (4) |
96
+ | `json` | `%{"foo" => "bar"}` (5) |
97
+ | `char` | `"é"` |
98
+ | `text` | `"myxql"` |
99
+ | `binary` | `<<1, 2, 3>>` |
100
+ | `bit` | `<<1::size(1), 0::size(1)>>` |
101
+ | `point`, `polygon`, ... | `%Geo.Point{coordinates: {0.0, 1.0}}, ...` (6) |
104
102
105
103
Notes:
changed hex_metadata.config
 
@@ -1,6 +1,6 @@
1
1
{<<"links">>,[{<<"GitHub">>,<<"https://github.com/elixir-ecto/myxql">>}]}.
2
2
{<<"name">>,<<"myxql">>}.
3
- {<<"version">>,<<"0.7.0">>}.
3
+ {<<"version">>,<<"0.7.1">>}.
4
4
{<<"description">>,<<"MySQL 5.5+ driver for Elixir">>}.
5
5
{<<"elixir">>,<<"~> 1.7">>}.
6
6
{<<"app">>,<<"myxql">>}.
changed lib/myxql/protocol/server_error_codes.ex
 
@@ -28,7 +28,8 @@ defmodule MyXQL.Protocol.ServerErrorCodes do
28
28
{1452, :ER_NO_REFERENCED_ROW_2},
29
29
{1461, :ER_MAX_PREPARED_STMT_COUNT_REACHED},
30
30
{1792, :ER_CANT_EXECUTE_IN_READ_ONLY_TRANSACTION},
31
- {1836, :ER_READ_ONLY_MODE}
31
+ {1836, :ER_READ_ONLY_MODE},
32
+ {3819, :ER_CHECK_CONSTRAINT_VIOLATED}
32
33
]
33
34
34
35
codes = default_codes ++ codes_from_config
changed mix.exs
 
@@ -1,7 +1,7 @@
1
1
defmodule MyXQL.MixProject do
2
2
use Mix.Project
3
3
4
- @version "0.7.0"
4
+ @version "0.7.1"
5
5
@source_url "https://github.com/elixir-ecto/myxql"
6
6
7
7
def project() do