 INSERT INTO LOGDATA.CONF_LOGGERS (LOGGER_ID, NAME, PARENT_ID, LEVEL_ID)
   VALUES (LOG_ID, 'LEV16B', 16, NULL);
 CALL LOGGER.REFRESH_CACHE();
-SET ACTUAL_NAME = LOGGER.GET_LOGGER_NAME2(LOG_ID);
+SET ACTUAL_NAME = LOGGER.GET_LOGGER_NAME(LOG_ID);
 IF (EXPECTED_NAME <> ACTUAL_NAME) THEN
  INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (2, 'Different NAME');
  INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (2, 'Expected ' || COALESCE(EXPECTED_NAME, 'NULL') || ' - actual ' || COALESCE(ACTUAL_NAME, 'NULL'));

SET EXPECTED_NAME = 'ROOT';
CALL LOGGER.DEACTIVATE_CACHE();
CALL LOGGER.REFRESH_CACHE();
SET ACTUAL_NAME = LOGGER.GET_LOGGER_NAME2(LOG_ID);
IF (EXPECTED_NAME <> ACTUAL_NAME) THEN
 INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (2, 'Different NAME');
 INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (2, 'Expected ' || COALESCE(EXPECTED_NAME, 'NULL') || ' - actual ' || COALESCE(ACTUAL_NAME, 'NULL'));

INSERT INTO LOGDATA.CONF_LOGGERS (LOGGER_ID, NAME, PARENT_ID, LEVEL_ID)
  VALUES (LOG_ID, EXPECTED_NAME, 0, NULL);
CALL LOGGER.REFRESH_CACHE();
SET ACTUAL_NAME = LOGGER.GET_LOGGER_NAME(LOG_ID);
IF (EXPECTED_NAME <> ACTUAL_NAME) THEN
 INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (2, 'Different NAME');
 INSERT INTO LOGDATA.LOGS (LEVEL_ID, MESSAGE) VALUES (2, 'Expected ' || COALESCE(EXPECTED_NAME, 'NULL') || ' - actual ' || COALESCE(ACTUAL_NAME, 'NULL'));
