We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22eac95 commit 8b77588Copy full SHA for 8b77588
src/operators/operator_class_test.sql
@@ -164,6 +164,16 @@ DO $$
164
RAISE EXCEPTION 'Expected Index Only Scan: %', result;
165
END IF;
166
167
+ -- Cast to jsonb
168
+ EXECUTE 'EXPLAIN ANALYZE SELECT e::jsonb FROM encrypted WHERE e = ''{"hm": "abc"}''::jsonb;' into result;
169
+
170
+ -- INDEX IS NOT USED
171
+ IF position('Seq Scan on encrypted' in result) > 0 THEN
172
+ ASSERT true;
173
+ ELSE
174
+ RAISE EXCEPTION 'Unexpected Seq Scan: %', result;
175
+ END IF;
176
177
-- Cast to jsonb to eql_v2_encrypted
178
EXECUTE 'EXPLAIN ANALYZE SELECT e::jsonb FROM encrypted WHERE e = ''{"hm": "abc"}''::jsonb::eql_v2_encrypted;' into result;
179
0 commit comments