Bug #4578 | MyODBC returning bad data for FROM_UNIXTIME() within a UNION | ||
---|---|---|---|
Submitted: | 16 Jul 2004 19:11 | Modified: | 27 Jul 2004 19:13 |
Reporter: | Dean Ellis | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / ODBC | Severity: | S2 (Serious) |
Version: | 3.51.07 | OS: | Windows (Windows) |
Assigned to: | Dean Ellis | CPU Architecture: | Any |
[16 Jul 2004 19:11]
Dean Ellis
[22 Jul 2004 20:44]
Peter Harvey
C test
Attachment: test.c (application/octet-stream, text), 6.90 KiB.
[22 Jul 2004 20:45]
Peter Harvey
Seems a C test works fine - see attached file. Will now investigate what funny business ADO may be doing.
[23 Jul 2004 1:59]
Peter Harvey
Seems older driver works but current driver fails. This is because a check was added to see if the binary bit was set on the field flag. Presumably this would be reliable way to determine if the field is binary. So if a column is "VARCHAR(n) BINARY" we can call it binary and not a string/char. But in practice the binary bit in the field flag is not reliable - it seems to fail when field is a result of aggregate/function or such. I have removed this check such that a string field is a char or varchar type. Changes pushed to bk.
[27 Jul 2004 19:13]
Dean Ellis
Fixed in 3.51.09.