mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-13 19:45:26 +00:00
db: Fix jsonb field access (#265)
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user