db: Fix jsonb field access (#265)

This commit is contained in:
Janos Dobronszki
2021-11-11 11:53:13 +00:00
committed by GitHub
parent 8ac424dd15
commit fff15c6f5b
6 changed files with 659 additions and 58 deletions

View File

@@ -9,8 +9,8 @@ import (
)
func TestCorrectFieldName(t *testing.T) {
f := correctFieldName("a.b.c")
if f != "data ->> 'a' ->> 'b' ->> 'c'" {
f := correctFieldName("a.b.c", true)
if f != "data -> 'a' -> 'b' ->> 'c'" {
t.Fatal(f)
}
}