fix: hemar: jsonb_value_by_path string copy

This commit is contained in:
2025-05-17 17:59:10 +00:00
parent a17a20b7d6
commit 19ea8992a0
2 changed files with 45 additions and 9 deletions

View File

@@ -1060,6 +1060,23 @@ SECTION: iterator="section", collection="page.sections"$expected40$
ELSE
RAISE WARNING 'Test %: Complex nested structure with all tag types - FAILED', total_tests;
END IF;
-- Test 41: Subsequent object interpolation
total_tests := total_tests + 1;
result := test_template_parse(
$hemar$User: {{ user.profile.name }}, Age: {{ user.profile.age }}$hemar$,
$zalupa$Template parsed successfully. Structure:
TEXT: "User: "
INTERPOLATE: "user.profile.name"
TEXT: ", Age: "
INTERPOLATE: "user.profile.age"$zalupa$
);
IF result THEN
passed_tests := passed_tests + 1;
RAISE NOTICE 'Test %: Subsequent object interpolation - PASSED', total_tests;
ELSE
RAISE WARNING 'Test %: Subsequent object interpolation - FAILED', total_tests;
END IF;
-- Print summary
IF passed_tests = total_tests THEN