diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-12-08 17:43:59 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2023-01-25 15:40:32 +0100 |
commit | 6252a281b5020d28685777c11ee27688a9db3d66 (patch) | |
tree | 3ec7827245e3cf79b167a83a062d5e54209690da /sql-common | |
parent | 986d39c3f5cbbee4ea1bbd9568c7007fbcbb49b7 (diff) | |
download | mariadb-git-6252a281b5020d28685777c11ee27688a9db3d66.tar.gz |
MDEV-28910 remove the 5.5.5- version hack
no longer needed, MySQL replication was fixed meanwhile.
client code still can recognize and strip the prefix though.
Diffstat (limited to 'sql-common')
-rw-r--r-- | sql-common/client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sql-common/client.c b/sql-common/client.c index 916abdea190..f58601055f0 100644 --- a/sql-common/client.c +++ b/sql-common/client.c @@ -3070,9 +3070,10 @@ CLI_MYSQL_REAL_CONNECT(MYSQL *mysql,const char *host, const char *user, mysql->port=port; /* - remove the rpl hack from the version string, - see RPL_VERSION_HACK comment + remove the rpl hack from the version string, in case we're connecting + to a pre-11.0 server */ +#define RPL_VERSION_HACK "5.5.5-" if ((mysql->server_capabilities & CLIENT_PLUGIN_AUTH) && strncmp(mysql->server_version, RPL_VERSION_HACK, sizeof(RPL_VERSION_HACK) - 1) == 0) |