Skip to content

Commit a23f64f

Browse files
committed
Update documentation for AllowZeroDateTime.
Signed-off-by: Bradley Grainger <[email protected]>
1 parent d35322f commit a23f64f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

docs/content/connection-options.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,13 @@ These are the other options that MySqlConnector supports. They are set to sensib
188188
<td>Allows user-defined variables (prefixed with <code>@</code>) to be used in SQL statements. The default value (<code>false</code>)
189189
only allows <code>@</code>-prefixed names to refer to command parameters.</td>
190190
</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>
191198
<tr>
192199
<td>Compress, Use Compression, UseCompression</td>
193200
<td>false</td>

docs/content/tutorials/migrating-from-connector-net.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,4 @@ The following bugs in Connector/NET are fixed by switching to MySqlConnector.
127127
* [#89159](https://bugs.mysql.com/bug.php?id=89159): `MySqlDataReader` cannot outlive `MySqlCommand`
128128
* [#89335](https://bugs.mysql.com/bug.php?id=89335): `MySqlCommandBuilder.DeriveParameters` fails for `JSON` type
129129
* [#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

0 commit comments

Comments
 (0)