Flowdock
method

columns_for_distinct

Importance_1
v5.2.3 - Show latest stable - 0 notes - Class: ActiveRecord::ConnectionAdapters
columns_for_distinct(columns, orders) public

In MySQL 5.7.5 and up, ONLY_FULL_GROUP_BY affects handling of queries that use DISTINCT and ORDER BY. It requires the ORDER BY columns in the select list for distinct queries, and requires that the ORDER BY include the distinct column. See dev.mysql.com/doc/refman/5.7/en/group-by-handling.html

Show source
Register or log in to add new notes.