MySQL connector in v7.4 breaks DATE_FORMAT() in MySQL 5.0

This forum is for programmers who have questions about the source code.
Post Reply
mowgli
Posts: 134
Joined: Fri Sep 14, 2007 1:42 pm

MySQL connector in v7.4 breaks DATE_FORMAT() in MySQL 5.0

Post by mowgli » Wed Nov 24, 2010 4:50 am

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.

User avatar
drtech
Posts: 1649
Joined: Wed Jun 20, 2007 8:44 am
Location: Springfield, MO
Contact:

Re: MySQL connector in v7.4 breaks DATE_FORMAT() in MySQL 5.0

Post by drtech » Fri Nov 26, 2010 12:04 pm

I am having issues too:
Linux server with MySQL 5.1.49...insplan errors

viewtopic.php?f=2&t=3166
David Fuchs
Dentist - Springfield, MO
Smile Dental http://www.887-smile.com

User avatar
jordansparks
Site Admin
Posts: 5744
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

Post by jordansparks » Mon Nov 29, 2010 5:37 pm

surround it with CHAR() or DATE() or whatever. It's a casting issue.
Jordan Sparks, DMD
http://www.opendental.com

mowgli
Posts: 134
Joined: Fri Sep 14, 2007 1:42 pm

Re: MySQL connector in v7.4 breaks DATE_FORMAT() in MySQL 5.0

Post by mowgli » Tue Nov 30, 2010 11:00 am

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?

User avatar
jordansparks
Site Admin
Posts: 5744
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

Post by jordansparks » Tue Nov 30, 2010 4:54 pm

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

Post Reply