You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CREATEFUNCTIONeql_v2.compare_hmac(a eql_v2_encrypted, b eql_v2_encrypted)
102
-
RETURNS integer
103
-
IMMUTABLE STRICT PARALLEL SAFE
104
-
AS $$
105
-
DECLARE
106
-
a_hmac eql_v2.hmac_256;
107
-
b_hmac eql_v2.hmac_256;
108
-
BEGIN
109
-
110
-
a_hmac =eql_v2.hmac_256(a);
111
-
b_hmac =eql_v2.hmac_256(b);
112
-
113
-
IF a_hmac IS NULLAND b_hmac IS NULL THEN
114
-
RETURN 0;
115
-
END IF;
116
-
117
-
IF a_hmac IS NULL THEN
118
-
RETURN -1;
119
-
END IF;
120
-
121
-
IF b_hmac IS NULL THEN
122
-
RETURN 1;
123
-
END IF;
124
-
125
-
IF a_hmac = b_hmac THEN
126
-
RETURN 0;
127
-
END IF;
128
-
129
-
IF a_hmac < b_hmac THEN
130
-
RETURN -1;
131
-
END IF;
132
-
133
-
IF a_hmac > b_hmac THEN
134
-
RETURN 1;
135
-
END IF;
136
-
137
-
END;
138
-
$$ LANGUAGE plpgsql;
139
-
140
-
141
-
--------------------
142
-
143
-
CREATEOPERATORFAMILYeql_v2.encrypted_operator USING btree;
144
-
145
-
CREATEOPERATOR CLASSeql_v2.encrypted_operator DEFAULT FOR TYPE eql_v2_encrypted USING btree FAMILY eql_v2.encrypted_operatorAS
16
+
CREATEOPERATOR CLASSeql_v2.encrypted_operator_class DEFAULT FOR TYPE eql_v2_encrypted USING btree FAMILY eql_v2.encrypted_operator_familyAS
146
17
OPERATOR 1<,
147
18
OPERATOR 2<=,
148
19
OPERATOR 3=,
@@ -153,17 +24,17 @@ CREATE OPERATOR CLASS eql_v2.encrypted_operator DEFAULT FOR TYPE eql_v2_encrypte
153
24
154
25
--------------------
155
26
156
-
-- CREATE OPERATOR FAMILY eql_v2.encrypted_operator_ore_block_u64_8_256 USING btree;
27
+
-- CREATE OPERATOR FAMILY eql_v2.encrypted_operator_ordered USING btree;
157
28
158
-
-- CREATE OPERATOR CLASS eql_v2.encrypted_operator_ore_block_u64_8_256 FOR TYPE eql_v2_encrypted USING btree FAMILY eql_v2.encrypted_operator_ore_block_u64_8_256 AS
29
+
-- CREATE OPERATOR CLASS eql_v2.encrypted_operator_ordered FOR TYPE eql_v2_encrypted USING btree FAMILY eql_v2.encrypted_operator_ordered AS
159
30
-- OPERATOR 1 <,
160
31
-- OPERATOR 2 <=,
161
32
-- OPERATOR 3 =,
162
33
-- OPERATOR 4 >=,
163
34
-- OPERATOR 5 >,
164
35
-- FUNCTION 1 eql_v2.compare_ore_block_u64_8_256(a eql_v2_encrypted, b eql_v2_encrypted);
165
36
166
-
-- --------------------
37
+
--------------------
167
38
168
39
-- CREATE OPERATOR FAMILY eql_v2.encrypted_hmac_256_operator USING btree;
0 commit comments