Add ability to extract values from the result set

Extract and action the @master_binlog_checksum value

Store master's uuid for use in show slave status

Support for MariaDB 5.5 masters
This commit is contained in:
Mark Riddoch
2015-02-04 15:59:28 +00:00
parent 77af6b19d2
commit 07536611d3
4 changed files with 107 additions and 22 deletions

View File

@ -859,7 +859,8 @@ int len, actual_len, col_len, seqno, ncols, i;
*ptr++ = 0;
sprintf(column, "%s", router->uuid);
sprintf(column, "%s", router->master_uuid ?
router->master_uuid : router->uuid);
col_len = strlen(column);
*ptr++ = col_len; // Length of result string
strncpy((char *)ptr, column, col_len); // Result string