Revision 12371
Added by Aaron Marcuse-Kubitza almost 11 years ago
util.sql | ||
---|---|---|
2233 | 2233 |
|
2234 | 2234 |
|
2235 | 2235 |
-- |
2236 |
-- Name: quote_typed(anyelement); Type: FUNCTION; Schema: util; Owner: - |
|
2237 |
-- |
|
2238 |
|
|
2239 |
CREATE FUNCTION quote_typed(value anyelement) RETURNS text |
|
2240 |
LANGUAGE sql IMMUTABLE |
|
2241 |
AS $_$ |
|
2242 |
SELECT quote_nullable($1)||$$::$$||pg_typeof($1) |
|
2243 |
$_$; |
|
2244 |
|
|
2245 |
|
|
2246 |
-- |
|
2236 | 2247 |
-- Name: raise_error_notice(text); Type: FUNCTION; Schema: util; Owner: - |
2237 | 2248 |
-- |
2238 | 2249 |
|
Also available in: Unified diff
schemas/util.sql: added quote_typed()