   IF LEFT(ident,1) = '`' AND RIGHT(ident,1) = '`' THEN
 	RETURN ident;
   END IF;
-   
+
   IF LEFT(ident,1) = '"' AND RIGHT(ident,1) = '"' THEN
 	RETURN CONCAT('`', TRIM(BOTH '"' FROM ident) ,'`');
   END IF;
-   
+
   RETURN CONCAT('`', ident, '`');
 END //
 

    SET msg = CONCAT('\n', CONCAT('\n'
      '    Extra ', what, ':\n\t' , REPLACE( extras, ',', '\n\t')));
  END IF;
    
  IF missing <> '' THEN
    SET res = FALSE;
    SET msg = CONCAT(msg, CONCAT('\n'

    RETURN tap;
END //

-- fix up a comma separated list of values to compare
-- against a list of db objects
DROP FUNCTION IF EXISTS _fixCSL //
CREATE FUNCTION _fixCSL (want TEXT)
RETURNS TEXT
BEGIN

	SET want = REPLACE(want, '''','');
	SET want = REPLACE(want, '"','');
	SET want = REPLACE(want, '\n','');

-- invalid characters eg NUL byte and characters > U+10000
--   IF want REGEXP '[[.NUL.]\\u10000-\\u10FFFD]' = 1 THEN
