File tree Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Expand file tree Collapse file tree 3 files changed +13
-10
lines changed Original file line number Diff line number Diff line change 49
49
END;
50
50
$$ LANGUAGE plpgsql;
51
51
52
+
52
53
CREATE OPERATOR - > (
53
54
FUNCTION= eql_v2." ->" ,
54
55
LEFTARG= eql_v2_encrypted,
Original file line number Diff line number Diff line change 11
11
DECLARE
12
12
found eql_v2_encrypted;
13
13
BEGIN
14
- found = eql_v2." ->" (e, selector);
15
- RETURN eql_v2 .ciphertext (found);
14
+ -- found = eql_v2."->"(e, selector);
15
+ -- RETURN eql_v2.ciphertext(found);
16
+ RETURN eql_v2." ->" (e, selector);
16
17
END;
17
18
$$ LANGUAGE plpgsql;
18
19
Original file line number Diff line number Diff line change @@ -34,15 +34,16 @@ $$ LANGUAGE plpgsql;
34
34
35
35
--
36
36
-- The ->> operator returns ciphertext matching the selector
37
- DO $$
38
- BEGIN
37
+ -- NOTE: DEPRECATED BEHAVIOUR
38
+ -- DO $$
39
+ -- BEGIN
39
40
40
- PERFORM assert_result(
41
- ' Selector ->> returns all eql_v2_encrypted' ,
42
- ' SELECT e->>' ' bca213de9ccce676fa849ff9c4807963' ' ::text FROM encrypted LIMIT 1;' ,
43
- ' mBbLGB9xHAGzLvUj-`@Wmf=IhD87n7r3ir3n!Sk6AKir_YawR=0c>pk(OydB;ntIEXK~c>V&4>)rNkf<JN7fmlO)c^iBv;-X0+3XyK5d`&&I-oeIEOcwPf<3zy' );
44
- END;
45
- $$ LANGUAGE plpgsql;
41
+ -- PERFORM assert_result(
42
+ -- 'Selector ->> returns all eql_v2_encrypted',
43
+ -- 'SELECT e->>''bca213de9ccce676fa849ff9c4807963''::text FROM encrypted LIMIT 1;',
44
+ -- 'mBbLGB9xHAGzLvUj-`@Wmf=IhD87n7r3ir3n!Sk6AKir_YawR=0c>pk(OydB;ntIEXK~c>V&4>)rNkf<JN7fmlO)c^iBv;-X0+3XyK5d`&&I-oeIEOcwPf<3zy');
45
+ -- END;
46
+ -- $$ LANGUAGE plpgsql;
46
47
47
48
48
49
--
You can’t perform that action at this time.
0 commit comments