File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -195,6 +195,11 @@ DECLARE
195
195
i integer ;
196
196
BEGIN
197
197
ste_vec_index := cs_ste_vec_v1(col);
198
+
199
+ IF ste_vec_index IS NULL THEN
200
+ RETURN NULL ;
201
+ END IF;
202
+
198
203
target_selector := selector- >> ' svs' ;
199
204
200
205
FOR i IN 1 ..array_length(ste_vec_index .entries , 1 ) LOOP
@@ -236,6 +241,11 @@ DECLARE
236
241
term_array cs_ste_vec_encrypted_term_v1[];
237
242
BEGIN
238
243
ste_vec_index := cs_ste_vec_v1(col);
244
+
245
+ IF ste_vec_index IS NULL THEN
246
+ RETURN NULL ;
247
+ END IF;
248
+
239
249
target_selector := selector- >> ' svs' ;
240
250
241
251
FOR i IN 1 ..array_length(ste_vec_index .entries , 1 ) LOOP
@@ -268,6 +278,11 @@ DECLARE
268
278
i integer ;
269
279
BEGIN
270
280
ste_vec_index := cs_ste_vec_v1(col);
281
+
282
+ IF ste_vec_index IS NULL THEN
283
+ RETURN NULL ;
284
+ END IF;
285
+
271
286
target_selector := selector- >> ' svs' ;
272
287
273
288
FOR i IN 1 ..array_length(ste_vec_index .entries , 1 ) LOOP
@@ -292,6 +307,11 @@ DECLARE
292
307
ste_vec_index cs_ste_vec_index_v1;
293
308
BEGIN
294
309
ste_vec_index := cs_ste_vec_v1(col);
310
+
311
+ IF ste_vec_index IS NULL THEN
312
+ RETURN NULL ;
313
+ END IF;
314
+
295
315
RETURN ste_vec_index .entries [1 ].term;
296
316
END;
297
317
$$ LANGUAGE plpgsql;
You can’t perform that action at this time.
0 commit comments