Hi everybody,
I encountered this problem using the
official
connect by solution proposed by Dan W :
The problem depends from this code fragment from the insert
trigger:
select max(sortkey) into max_key
from sedi
where
id_sede_super = new.id_sede_super;
because the sequence of the
sortkey returned conflicts with the sequence of the tree_encoding
table:
copy tree_encodings from stdin using delimiters '/' ;
0/0
1/1
2/2
3/3
4/4
5/5
6/6
7/7
8/8
9/9
10/:
11/;
...
Trying to insert the 11th row the select max(sortkey) always returns
the value /00/09 instead of /00/0:
I'm posting this just to be sure that some workaround already exists
before creating a new one.
TIA in advance,
Claudio Pasolini