Queries With a Literal and DISTINCT GROUP BY or View Returns Incorrect Results in MySQL 5.6.13 through 5.6.19

(Doc ID 1920736.1)

Last updated on MARCH 08, 2017

Applies to:

MySQL Server - Version 5.6 to 5.6 [Release 5.6]
Information in this document applies to any platform.


In MySQL 5.6.13 to 5.6.19 (both releases included), some queries that has a constant (literal) in the SELECT clause and requires an internal temporary table returns the wrong result. See the following for examples.

SELECT * FROM ... ORDER BY ... For a View That Includes a Constant In the View Definition



Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms