Skip to content

Commit a5c502b

Browse files
committed
prefix/prefixsqlite: fix returned path for positive lookups
1 parent a1f2685 commit a5c502b

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

prefix/prefixsqlite/path.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@ WHERE
9898
-- return the siblings of the path to the target
9999
onpath = 0
100100
OR -- and the final node which will become the sibling of the target
101-
-- unless it's the empty child of the root that will be replaced
101+
-- unless it's the target or the empty child of the root that will be replaced
102102
onpath = 1
103103
AND side = -1
104104
AND label_bit_len != 0
105+
AND (
106+
label != :label
107+
OR label_bit_len != :label_bit_len
108+
)

0 commit comments

Comments
 (0)