Revision 12437
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
2351 | 2351 |
CREATE FUNCTION quote_typed(value anyelement) RETURNS text |
2352 | 2352 |
LANGUAGE sql IMMUTABLE |
2353 | 2353 |
AS $_$ |
2354 |
SELECT quote_nullable($1)||$$::$$||pg_typeof($1)
|
|
2354 |
SELECT quote_nullable($1)||$$::$$||util.qual_name(pg_typeof($1))
|
|
2355 | 2355 |
$_$; |
2356 | 2356 |
|
2357 | 2357 |
|
Also available in: Unified diff
fix: schemas/util.sql: quote_typed(): schema-qualify the type so the expression does not depend on the search_path