Skip to content

Commit 3882055

Browse files
committed
Update 001-ore-cllw.sql with ORE comparison fix when bytea comparison is 'equal'
1 parent 89dd8a7 commit 3882055

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/001-ore-cllw.sql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,9 +150,9 @@ BEGIN
150150

151151
-- If the bytea comparison is 'equal', compare lengths
152152
IF len_a < len_b THEN
153-
RETURN 1;
154-
ELSIF len_a > len_b THEN
155153
RETURN -1;
154+
ELSIF len_a > len_b THEN
155+
RETURN 1;
156156
ELSE
157157
RETURN 0;
158158
END IF;

0 commit comments

Comments
 (0)