Adds comment for magic number and constant for maxlen 173

This commit is contained in:
Guido Fioravantti 2015-10-26 16:15:55 +01:00
parent 629214f32f
commit bb18d71995

View File

@ -10,10 +10,10 @@ DECLARE
ident TEXT;
i INTEGER;
origident TEXT;
maxlen INTEGER;
BEGIN
maxlen := 63;
maxlen CONSTANT integer := 63;
BEGIN
-- Accounts for the _XX incremental suffix in case the identifier is taken
usedspace := 3;
usedspace := usedspace + coalesce(octet_length(prefix), 0);
usedspace := usedspace + coalesce(octet_length(suffix), 0);
@ -68,10 +68,10 @@ DECLARE
ident TEXT;
i INTEGER;
origident TEXT;
maxlen INTEGER;
BEGIN
maxlen := 63;
maxlen CONSTANT integer := 63;
BEGIN
-- Accounts for the _XX incremental suffix in case the identifier is taken
usedspace := 3;
usedspace := usedspace + coalesce(octet_length(prefix), 0);
usedspace := usedspace + coalesce(octet_length(suffix), 0);