File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -188,6 +188,13 @@ These are the other options that MySqlConnector supports. They are set to sensib
188
188
<td>Allows user-defined variables (prefixed with <code>@</code>) to be used in SQL statements. The default value (<code>false</code>)
189
189
only allows <code>@</code>-prefixed names to refer to command parameters.</td>
190
190
</tr >
191
+ <tr >
192
+ <td>AllowZeroDateTime, Allow Zero DateTime</td>
193
+ <td>false</td>
194
+ <td>If set to <c>true</c> all `DATE`, `DATETIME` and `TIMESTAMP` columns are returned as `MySqlDateTime` objects instead of `DateTime`.
195
+ This allows the special “zero” date value `0000-00-00` to be retrieved from the database. If <code>false</code> (the default)
196
+ date columns are returned as `DateTime` values, and an exception is thrown for unrepresentable dates.</td>
197
+ </tr >
191
198
<tr >
192
199
<td>Compress, Use Compression, UseCompression</td>
193
200
<td>false</td>
Original file line number Diff line number Diff line change @@ -127,3 +127,4 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector.
127
127
* [ #89159 ] ( https://bugs.mysql.com/bug.php?id=89159 ) : ` MySqlDataReader ` cannot outlive ` MySqlCommand `
128
128
* [ #89335 ] ( https://bugs.mysql.com/bug.php?id=89335 ) : ` MySqlCommandBuilder.DeriveParameters ` fails for ` JSON ` type
129
129
* [ #91123 ] ( https://bugs.mysql.com/bug.php?id=91123 ) : Database names are case-sensitive when calling a stored procedure
130
+ * [ #91199 ] ( https://bugs.mysql.com/bug.php?id=91199 ) : Can't insert ` MySqlDateTime ` values
You can’t perform that action at this time.
0 commit comments