This file contains hidden or 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
| CREATE OR REPLACE FUNCTION group_concat_iterate(_state INTEGER[], _value INTEGER) | |
| RETURNS INTEGER[] AS | |
| $BODY$ | |
| SELECT | |
| CASE | |
| WHEN $1 IS NULL THEN ARRAY[$2] | |
| ELSE $1 || $2 | |
| END | |
| $BODY$ | |
| LANGUAGE SQL VOLATILE; |