Bug #40366 | DateTime values returned as 'System.Byte[]' | ||
---|---|---|---|
Submitted: | 28 Oct 2008 8:07 | Modified: | 29 Oct 2008 6:54 |
Reporter: | Maxim Nikolaev | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | Connector / NET | Severity: | S3 (Non-critical) |
Version: | 5.1.7 | OS: | Windows |
Assigned to: | CPU Architecture: | Any | |
Tags: | datetime |
[28 Oct 2008 8:07]
Maxim Nikolaev
[29 Oct 2008 6:54]
Tonci Grgin
Hi Maxim and thanks for your report. Your results are perfectly ok, no matter how they appear to you. Also, you will have this exact problem with *any* connector because it's in MySQL server's metadata, not in code. Using functions like MAX set's BINARY flag (same with ad-hoc queries like "SHOW ...", see Bug#10491). To work around this problem, each connector has an option that assumes result from function to be a string. In c/NET you can turn it on by adding "Functions Return String=true" to your connect string. However, it is only available as of Version 5.2.3 - 8/14/08. Thanks for your interest in MySQL.
[29 Oct 2008 6:56]
Tonci Grgin
See explanation on similar thing in Bug#37485.