• Tatjana Azundris Nuernberg's avatar
    BUG#11755281/47032: ERROR 2006 / ERROR 2013 INSTEAD OF PROPER ERROR MESSAGE · 1666da4b
    Tatjana Azundris Nuernberg authored
    If init_command was incorrect, we couldn't let users execute
    queries, but we couldn't report the issue to the client either
    as it does not expect error messages before even sending a
    command. Thus, we simply disconnected them without throwing
    a clear error.
    
    We now go through the proper sequence once (without executing
    any user statements) so we can report back what the problem
    is. Only then do we disconnect the user.
    
    As always, root remains unaffected by this as init_command is
    (still) not executed for them.
    1666da4b
init_connect.test 5.53 KB