Project

General

Profile

« Previous | Next » 

Revision 8181

schemas/functions.sql: col_type(): Fixed bug where a NULL col name crashed the undefined_column throw, because MESSAGE can't be NULL and the NULL name was nulling out the entire message

View differences:

schemas/functions.sql
606 606
    RETURN type;
607 607
EXCEPTION
608 608
    WHEN no_data_found THEN
609
        RAISE undefined_column USING MESSAGE = 'undefined column: '||col.name;
609
        RAISE undefined_column USING MESSAGE =
610
            concat('undefined column: ', col.name);
610 611
END;
611 612
$$;
612 613

  

Also available in: Unified diff