Skip to content

Commit c2dca9c

Browse files
author
Sergejs Vinniks
committed
Fixed transient JSON bug with special fields in GET_TABLE methods
1 parent 77c52df commit c2dca9c

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

test/templates/implementation_type/get_table.js.tpl

+24-1
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,7 @@ suite("GET_TABLE_5 tests", function() {
566566

567567
});
568568

569-
test("Existing", function() {
569+
test("Special fields of an existing optional value", function() {
570570
571571
let valueId = createValue({
572572
name: "Sergejs"
@@ -585,4 +585,27 @@ suite("GET_TABLE_5 tests", function() {
585585

586586
});
587587

588+
test("Special fields without _", function() {
589+
590+
let valueId = createValue({
591+
type: "Sergejs",
592+
key: "Vinniks",
593+
id: "Hello, World!",
594+
value: "Good bye, World!"
595+
});
596+
597+
let table = database.selectRows(`
598+
*
599+
FROM TABLE(${implementationType}(${valueId}).get_table_5('
600+
(type, key, id, value)
601+
'))
602+
`);
603+
604+
expect(table).to.eql([
605+
["Sergejs", "Vinniks", "Hello, World!", "Good bye, World!", null]
606+
])
607+
608+
});
609+
610+
588611
});

0 commit comments

Comments
 (0)