Revision 12359
Added by Aaron Marcuse-Kubitza almost 11 years ago
trunk/schemas/util.sql | ||
---|---|---|
2078 | 2078 |
CREATE FUNCTION name_was_truncated(name_ text) RETURNS boolean |
2079 | 2079 |
LANGUAGE sql IMMUTABLE |
2080 | 2080 |
AS $_$ |
2081 |
SELECT octet_length($1) = 63
|
|
2081 |
SELECT octet_length($1) = util.namedatalen()
|
|
2082 | 2082 |
$_$; |
2083 | 2083 |
|
2084 | 2084 |
|
Also available in: Unified diff
fix: name_was_truncated(): should use util.namedatalen() instead of hardcoding the value