• Alexander Barkov's avatar
    MDEV-33182 Server assertion fails when trying to test the connection with DBeaver · 985e3dfc
    Alexander Barkov authored
    Some connectors (JDBC, Node.js) can sent non-default collation IDs
    in the handshake packet. The code in thd_init_client_charset() handling
    @@character_set_collations did not expect that and crashed on DBUG_ASSERT.
    
    Changing the code to ignore @@character_set_collations in case of non-default
    IDs. This fixes the problem in a backward compatible
    (with pre-@@character_set_collations server versions) way for such connectors
    sending non-default IDs.
    985e3dfc
sql_connect.cc 47.4 KB