📜  无法将 mysql 日期时间值转换为 system.datetime - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:31.850000             🧑  作者: Mango

代码示例1
If I google for "Unable to convert MySQL date/time value to System.DateTime" I see numerous references to a problem accessing MySQL from Visual Studio. Is that your context?

One solution suggested is:

This is not a bug but expected behavior. Please check manual under connect options and set "Allow Zero Datetime" to true, as on attached pictures, and the error will go away.

Reference: http://bugs.mysql.com/bug.php?id=26054