Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-32262

MYSQL 5.7.5+ only_full_group_by setting causing some issues with some queries

    XMLWordPrintable

    Details

    • 20 status:
      Resolved
    • 19 status:
      Resolved
    • Previous Issue Keys:
      SAM-3169
    • Test Plan:
      Hide

       Need Test plan

      Show
       Need Test plan

      Description

      Those that have begun running on MySQL 5.7.5 may notice some errors in the logs that look like:

      caused by: org.springframework.dao.InvalidDataAccessResourceUsageException: could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet
          at org.springframework.orm.hibernate4.HibernateTemplate.doExecute(HibernateTemplate.java:344)
      caused by: org.hibernate.exception.SQLGrammarException: could not extract ResultSet
          at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:49)
      caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Expression #2 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'sakai_master.eventstati0_.EVENT_ID' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
      

      MySQL change
      http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_only_full_group_by for the
      Stack overflow for reference:
      http://stackoverflow.com/questions/34115174/error-related-to-only-full-group-by-when-executing-a-query-in-mysql

        Gliffy Diagrams

          Zeplin

            Attachments

              Activity

                People

                Assignee:
                ottenhoff Sam Ottenhoff
                Reporter:
                ern Earle R Nietzel
                Votes:
                1 Vote for this issue
                Watchers:
                6 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration