Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4210

mysql-connector-java v5.1.8 with mysql server v5.6 causes MySQLSyntaxErrorException

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: TBD
    • Resolution: Fixed
    • Affects Version/s: OpenMRS 1.9.7, Platform 1.10.0, Platform 1.11.0
    • Fix Version/s: OpenMRS 1.9.8, Platform 1.10.0
    • Component/s: None
    • Labels:

      Description

      Current mysql-connector-java version 5.1.8 with MySQL server version 5.6 throws MySQLSyntaxErrorException for select queries without limit. The error message is as follows :

      mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_SELECT_LIMIT=DEFAULT' at line 1

      Updating mysql-connector-java to version 5.1.28 fixes this issue.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                vinkesh Vinkesh Banka
                Reporter:
                vinkesh Vinkesh Banka
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 hour
                    1h
                    Remaining:
                    Remaining Estimate - 1 hour
                    1h
                    Logged:
                    Time Spent - Not Specified
                    Not Specified