• unknown's avatar
    Fix for MIN/MAX with empty tables · c73dcb5e
    unknown authored
    MIN(key_column) could in some cases return NULL on a column with NULL and other values.
    MIN(key_column) and MAX(key_column) could in some cases return wrong values when used in OUTER JOIN.
    
    
    configure.in:
      Updated version number
    libmysqld/libmysqld.c:
      Portability fix (for windows)
    mysql-test/r/func_group.result:
      Added test case for MIN/MAX problems
    mysql-test/t/func_group.test:
      Added test case for MIN/MAX problems
    sql/item.h:
      Fix for MIN/MAX with empty tables
    sql/item_sum.h:
      Fix for MIN/MAX with empty tables
    sql/opt_sum.cc:
      MIN(key_column) could in some cases return NULL on a column
      with NULL and other values.
      MIN(key_column) and MAX(key_column) could in some cases
      return wrong values when used in OUTER JOIN.
    sql/sql_select.cc:
      Fix for MIN/MAX with empty tables
    c73dcb5e
sql_select.cc 207 KB