Revision 13447
Added by Aaron Marcuse-Kubitza over 10 years ago
util.sql | ||
---|---|---|
1080 | 1080 |
CREATE FUNCTION debug_print_return_value(value anyelement, encode boolean DEFAULT false) RETURNS anyelement |
1081 | 1081 |
LANGUAGE sql IMMUTABLE |
1082 | 1082 |
AS $_$ |
1083 |
SELECT util.raise('NOTICE', 'returns: ' |
|
1084 |
||(CASE WHEN $2 THEN util.quote_typed($1) ELSE $1::text END)); |
|
1083 |
SELECT util.debug_print_value('returns: ', $1, $2); |
|
1085 | 1084 |
SELECT $1; |
1086 | 1085 |
$_$; |
1087 | 1086 |
|
Also available in: Unified diff
schemas/util.sql: debug_print_return_value(): use new util.debug_print_value()