• gshchepa/uchum@gleb.loc's avatar
    Fixed bug #28244. · 12d43d55
    gshchepa/uchum@gleb.loc authored
    When the same VIEW was created at the master side twice,
    malformed (truncated after the word 'AS') query string 
    was forwarded to client side, so error messages on the
    master and client was different, and replication was
    broken.
    
    The mysql_register_view function call failed
    too early: fields of `view' output argument of this 
    function was not filled yet with correct data required
    for query replication.
    The mysql_register_view function also copied pointers to 
    local buffers into a memory allocated by the caller.
    12d43d55
sql_view.cc 52.6 KB