diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-04-15 18:25:31 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-04-15 18:25:31 +0200 |
| commit | 1bb7ef5779aa3c27417eedf84aac6a8ea896871a (patch) | |
| tree | 83eb83a43c21419191721633ca1f3b450ac22813 /plan_test.go | |
| parent | 5fb8e4a13afbc4cc3ef6e7492c020f8abf63b37f (diff) | |
| download | go-oblast-1bb7ef5779aa3c27417eedf84aac6a8ea896871a.tar.gz | |
clarify behavior around recursing into struct type members
Diffstat (limited to 'plan_test.go')
| -rw-r--r-- | plan_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plan_test.go b/plan_test.go index 3568447..e9d8dea 100644 --- a/plan_test.go +++ b/plan_test.go @@ -58,13 +58,11 @@ func TestPlanFieldTraversal(t *testing.T) { }) } -// TODO: test that, during Select(), assignment into embedded fields with pointer-to-struct type works (docs say that this might panic if we do not allocate into the pointer first) - func TestQueryConstructionBasic(t *testing.T) { type record struct { ID int64 `db:",auto"` Description string - CreatedAt time.Time + CreatedAt time.Time `db:"CreatedAt"` } opts := planOpts{ TableName: "basic_records", @@ -199,7 +197,7 @@ func TestQueryConstructionWithoutPrimaryKey(t *testing.T) { func TestQueryConstructionImpossble(t *testing.T) { type unstructuredData struct { Foo int - Bar string + Bar *string } opts := planOpts{} |
