• MySQL Build Team's avatar
    Backport into build-201003230706-5.1.43sp1 · f6f93eef
    MySQL Build Team authored
    > ------------------------------------------------------------
    > revno: 3333.1.31
    > revision-id: joro@sun.com-20091223104518-o29t0i3thgs7wgm1
    > parent: sergey.glukhov@sun.com-20100205093946-bx1hsljxlm12h7uf
    > committer: Georgi Kodinov <joro@sun.com>
    > branch nick: B39022-5.1-bugteam
    > timestamp: Wed 2009-12-23 12:45:18 +0200
    > message:
    >   Bug #39022: Mysql randomly crashing in lock_sec_rec_cons_read_sees
    >   
    >   flush_cached_records() was not correctly checking for errors after calling
    >   Item::val_xxx() methods. The expressions may contain subqueries
    >   or stored procedures that cause errors that should stop the statement.
    >   Fixed by correctly checking for errors and propagating them up the call stack.
    
    > ------------------------------------------------------------
    > revno: 3358
    > revision-id: sergey.glukhov@sun.com-20100226113925-mxwn1hfxe3l8khc4
    > parent: gshchepa@mysql.com-20100225191311-1x71dkk0h5e1alvx
    > committer: Sergey Glukhov <Sergey.Glukhov@sun.com>
    > branch nick: mysql-5.1-bugteam
    > timestamp: Fri 2010-02-26 15:39:25 +0400
    > message:
    >   Bug#50995 Having clause on subquery result produces incorrect results.
    >   The problem is that cond->fix_fields(thd, 0) breaks
    >   condition(cuts off 'having'). The reason of that is
    >   that NULL valued Item pointer is present in the
    >   middle of Item list and it breaks the Item processing
    >   loop.
    f6f93eef
sql_select.cc 539 KB