MySQL connector in v7.4 breaks DATE_FORMAT() in MySQL 5.0
MySQL connector in v7.4 breaks DATE_FORMAT() in MySQL 5.0
Dates in custom RDL reports were broken and displayed as "SystemByte()" by the new MySQL connector employed in v7.4. Tested data on a Linux server where MySQL 5.1.49 was installed, and the symptom disappeared. Apparently MySql.Data.dll version 6.2.4 must have MySQL 5.1 in order for the function DATE_FORMAT() to work properly.
DMA, Inc.
http://www.dmatechsolutions.com
http://www.dmatechsolutions.com
- jordansparks
- Site Admin
- Posts: 5770
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: MySQL connector in v7.4 breaks DATE_FORMAT() in MySQL 5.0
surround it with CHAR() or DATE() or whatever. It's a casting issue.
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com
Re: MySQL connector in v7.4 breaks DATE_FORMAT() in MySQL 5.0
Yes, it can be fixed by changing all the queries individually in the reports. Would that be better than upgrading to MySQL 5.1? Would version 5.1 have any problems with Open Dental?
DMA, Inc.
http://www.dmatechsolutions.com
http://www.dmatechsolutions.com
- jordansparks
- Site Admin
- Posts: 5770
- Joined: Sun Jun 17, 2007 3:59 pm
- Location: Salem, Oregon
- Contact:
Re: MySQL connector in v7.4 breaks DATE_FORMAT() in MySQL 5.0
Sounds like an upgrade to 5.1 might be easier if not too many offices are involved. We don't have that luxury. We need to make all of our queries work with MySQL 5.0.
Jordan Sparks, DMD
http://www.opendental.com
http://www.opendental.com