File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -305,17 +305,17 @@ BEGIN
305
305
IF sub .body IS NOT NULL THEN -- TODO: Nested JSON lookups
306
306
RAISE EXCEPTION ' Nested JSON lookup is as yet unimplemented' ;
307
307
END IF;
308
- lookups := lookups || format(' ->%L' , sub .selector );
308
+ lookups := lookups || format(' %I ->%L' , selector , sub .selector );
309
309
WHEN regtype(' hstore' ) THEN
310
310
IF sub .body IS NOT NULL THEN
311
311
RAISE EXCEPTION ' No fields below this level (column % is hstore)' ,
312
312
tab, col;
313
313
END IF;
314
- lookups := lookups || format(' ->%L' , sub .selector );
314
+ lookups := lookups || format(' %I ->%L' , selector , sub .selector );
315
315
ELSE
316
316
-- - Treat it as a field lookup in a nested record (this could also end up
317
317
-- - being a function call, by the way).
318
- lookups := lookups || format(' .%I' , sub .selector );
318
+ lookups := lookups || format(' %I .%I' , selector , sub .selector );
319
319
END CASE;
320
320
labels := labels || format(' %I' , sub .selector );
321
321
END LOOP;
You can’t perform that action at this time.
0 commit comments