Project

General

Profile

« Previous | Next » 

Revision 8149

schemas/functions.sql: map_get(): Fixed bug where can't use STRICT in EXECUTE INTO because there will sometimes be no match, causing a "query returned no rows" error

View differences:

schemas/functions.sql
649 649
    value text;
650 650
BEGIN
651 651
    EXECUTE $$SELECT "to" FROM $$||map||$$ WHERE "from" = $1$$
652
        INTO STRICT value USING key;
652
        INTO value USING key;
653 653
    RETURN value;
654 654
END;
655 655
$_$;

Also available in: Unified diff