Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Post-fix after ba9f5f4 (adding _server_host
attribute). mysql->host is not always set (apparently not when reconnecting), This made MariaDB C/C produce invalid handshake reply packet with incorrecly encoded connection attributes. there cannot be connection attributes with empty values in MySQL protocol. Fix connector to only send _server_host is host is valid non-empty string. Also prevent adding connection attributes with empty values.
- Loading branch information
Showing
1 changed file
with
14 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters