• Guilhem Bichot's avatar
    backport of guilhem@mysql.com-20100628140739-i9vy8ugxp1v5aspb · d1bf703c
    Guilhem Bichot authored
    from next-mr-bugfixing:
    BUG#54682 "set sql_select_limit=0 does not work"; let SQL_SELECT_LIMIT=0
    work like it does in 5.1.
    
    
    mysql-test/suite/sys_vars/r/sql_select_limit_func.result:
      before the fix, the SET would emit a warning (0 being rounded up to 1)
      and SELECTs would return one row.
    sql/sys_vars.cc:
      0 is allowed, it means an implicit LIMIT 0 (i.e. no rows returned)
    d1bf703c
sql_select_limit_func.result 4.09 KB