From f5c4daf5681e5c679466731dd23bad69752a20db Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 4 Sep 2002 21:25:53 +0300 Subject: [PATCH] A small explanation regarding comparison of ENUM and SET values --- Docs/manual.texi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Docs/manual.texi b/Docs/manual.texi index 9c7b5935ba1..5cfd4e4077e 100644 --- a/Docs/manual.texi +++ b/Docs/manual.texi @@ -33868,6 +33868,11 @@ Returns the minimum or maximum value of @code{expr}. @code{MIN()} and @code{MAX()} may take a string argument; in such cases they return the minimum or maximum string value. @xref{MySQL indexes}. +There is one inconsistency in MySQL in handling @code[ENUM] and @code[SET] +types when it comes to @code{MIN()}, @code{MAX()} and other aggregating +functions. MySQL will compare values based on string values of the columns, +instead of it's relative position. This will be fixed in future. + @example mysql> SELECT student_name, MIN(test_score), MAX(test_score) -> FROM student