Revision 14246
Added by Aaron Marcuse-Kubitza over 10 years ago
trunk/schemas/util.sql | ||
---|---|---|
4182 | 4182 |
|
4183 | 4183 |
|
4184 | 4184 |
-- |
4185 |
-- Name: quote_typed(col); Type: FUNCTION; Schema: util; Owner: - |
|
4186 |
-- |
|
4187 |
|
|
4188 |
CREATE FUNCTION quote_typed(col col) RETURNS text |
|
4189 |
LANGUAGE sql IMMUTABLE |
|
4190 |
AS $_$ |
|
4191 |
SELECT $$($$||quote_nullable(col.table_)||$$, $$||quote_nullable(col.name)||$$)::$$||util.qual_name(pg_typeof($1)) |
|
4192 |
$_$; |
|
4193 |
|
|
4194 |
|
|
4195 |
-- |
|
4185 | 4196 |
-- Name: quote_typed(anyelement); Type: FUNCTION; Schema: util; Owner: - |
4186 | 4197 |
-- |
4187 | 4198 |
|
Also available in: Unified diff
schemas/util.sql: added quote_typed(col)