• Konstantin Osipov's avatar
    A fix for Bug#11918 "SP does not accept variables in LIMIT clause" · b8d014b8
    Konstantin Osipov authored
    Allow stored procedure variables in LIMIT clause.
    Only allow variables of INTEGER types. 
    Handle negative values by means of an implicit cast to UNSIGNED 
    (similarly to prepared statement placeholders).
    Add tests.
    Make sure replication works by not doing NAME_CONST substitution
    for variables in LIMIT clause.
    Add replication tests.
    b8d014b8
sql_yacc.yy 425 KB