Skip to content

Commit f239f44

Browse files
authored
Merge pull request #54 from cipherstash/ore-lex-comp-fix
Update 001-ore-cllw.sql with ORE comparison fix when bytea comparison is 'equal'
2 parents 89dd8a7 + 3882055 commit f239f44

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)