The getter for MySQLData.time assumes the data is in .binary format. However, MariaDB 10.5 returns data from timestamp fields in .text format "2008-12-29 12:59:59", which leads to a fatal error unwrapping nil.
To Reproduce
Run a Docker container with mariadb:10.5 and these command-line arguments:
Describe the bug
The getter for MySQLData.time assumes the data is in .binary format. However, MariaDB 10.5 returns data from timestamp fields in .text format "2008-12-29 12:59:59", which leads to a fatal error unwrapping nil.
To Reproduce
Expected behavior
The current timestamp should be returned. Instead, there is a fatal error at MySQLData.swift:458.
Environment
framework: 4.55.0 toolbox: 18.3.3 OS version: macOS 12.2.1
Additional context
I think the fix is straightforward, and I hope to have a pull request to fix the problem soon.