mirror of
https://github.com/pikami/cosmium.git
synced 2026-05-17 02:28:20 +01:00
Add support for array field access
This commit is contained in:
@@ -41,7 +41,7 @@ func Test_Parse(t *testing.T) {
|
||||
t.Run("Shoul parse simple SELECT", func(t *testing.T) {
|
||||
testQueryParse(
|
||||
t,
|
||||
`SELECT c.id, c.pk FROM c`,
|
||||
`SELECT c.id, c["pk"] FROM c`,
|
||||
parsers.SelectStmt{
|
||||
Columns: []parsers.FieldPath{
|
||||
{Path: []string{"c", "id"}},
|
||||
|
||||
Reference in New Issue
Block a user