Project

General

Profile

« Previous | Next » 

Revision 12241

schemas/util.sql: table_name(): renamed to name(regclass) for consistency with other name(...) functions

View differences:

trunk/schemas/util.sql
2405 2405

  
2406 2406

  
2407 2407
--
2408
-- Name: table_name(regclass); Type: FUNCTION; Schema: util; Owner: -
2408
-- Name: name(regclass); Type: FUNCTION; Schema: util; Owner: -
2409 2409
--
2410 2410

  
2411
CREATE FUNCTION table_name(table_ regclass) RETURNS text
2411
CREATE FUNCTION name(table_ regclass) RETURNS text
2412 2412
    LANGUAGE sql STABLE
2413 2413
    AS $_$
2414 2414
SELECT relname::text FROM pg_class WHERE oid = $1

Also available in: Unified diff