This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DELIMITER $$ | |
CREATE FUNCTION to_json_array(input_string TEXT, delimiter_char CHAR(1)) | |
RETURNS JSON | |
BEGIN | |
RETURN CONCAT("[", TRIM(BOTH delimiter_char FROM input_string), "]"); | |
END$$ | |
DELIMITER ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment