• konstantin@mysql.com's avatar
    A fix and test case for Bug#5985 ""prepare stmt from "select rand(?)" · 5abc3de2
    konstantin@mysql.com authored
    crashes server." The fix makes Item_func_rand prepared-statements
    aware plus it fixes the case when RAND is used in prepared
    statements and replication is on (as well as several similar issues).
    Until now we did not reset THD before every execution of a prepared
    statement, so if some execution had set thd->time_zone_used
    or thd->rand_used they would not be reset until next mysql_parse.
    Some of post-review fixes done.
    5abc3de2
sql_lex.h 22.5 KB