Project

General

Profile

« Previous | Next » 

Revision 8148

schemas/functions.sql: rename_cols(): Support any renames type with an -> operator

View differences:

schemas/functions.sql
683 683

  
684 684

  
685 685
--
686
-- Name: rename_cols(regclass, hstore); Type: FUNCTION; Schema: functions; Owner: -
686
-- Name: rename_cols(regclass, anyelement); Type: FUNCTION; Schema: functions; Owner: -
687 687
--
688 688

  
689
CREATE FUNCTION rename_cols(table_ regclass, renames hstore) RETURNS void
689
CREATE FUNCTION rename_cols(table_ regclass, renames anyelement) RETURNS void
690 690
    LANGUAGE sql STRICT
691 691
    AS $_$
692 692
SELECT functions.rename_if_exists($$ALTER TABLE $$||$1||$$ RENAME $$
......
696 696

  
697 697

  
698 698
--
699
-- Name: FUNCTION rename_cols(table_ regclass, renames hstore); Type: COMMENT; Schema: functions; Owner: -
699
-- Name: FUNCTION rename_cols(table_ regclass, renames anyelement); Type: COMMENT; Schema: functions; Owner: -
700 700
--
701 701

  
702
COMMENT ON FUNCTION rename_cols(table_ regclass, renames hstore) IS 'idempotent';
702
COMMENT ON FUNCTION rename_cols(table_ regclass, renames anyelement) IS 'idempotent';
703 703

  
704 704

  
705 705
--

Also available in: Unified diff