Addition of BLR_TYPE_STRING and BLR_TYPE_INT

Addition of BLR_TYPE_STRING and BLR_TYPE_INT for SQL variable names
replies
This commit is contained in:
MassimilianoPinto
2015-08-24 10:11:26 +02:00
parent 1b3ce9e16b
commit e103aa46a8
3 changed files with 52 additions and 37 deletions

View File

@ -348,8 +348,11 @@ int rc = 0;
}
else if (strcmp(options[i], "master-id") == 0)
{
inst->masterid = atoi(value);
inst->set_master_server_id = value;
int master_id = atoi(value);
if (master_id > 0) {
inst->masterid = master_id;
inst->set_master_server_id = strdup(value);
}
}
else if (strcmp(options[i], "master_uuid") == 0)
{