You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix#63: Hard crash in MySQLData.description when a zero-value datetime is received from older MySQL configurations which still do this. Returns a description of the epoch instead.
* Use the thread-safe gmtime_r() instead of gmtime() in MySQLTime.init(date:).
* Pass a more sensible capacity value to ByteBufferAllocator for SHA digests.
* Fix deprecation warnings for TLSConfiguration and declare the explicit dependency on the update NIOSSL version.
* Another round of long-overdue CI updates
* Don't crash if server capabilities are not available during connection close.
Describe the bug
This section: https://github.com/vapor/mysql-nio/blob/main/Sources/MySQLNIO/MySQLData.swift#L448-L469 causes a hard crash (i.e. bang operator) when there is data that is malformed at the MySQL level. For example, a
datetime
that is non-nullable defaults to0000-00-00 00:00:00.000000
which is 1. obviously invalid as a date and 2. causes thedescription
property to crash.To Reproduce
Do a
SELECT
from a table with a column with a date value set to0000-00-00 00:00:00.000000
Expected behavior
It should not crash and ideally log out some kind of an error
Environment
MySQLNIO v 1.3.2
The text was updated successfully, but these errors were encountered: