diff options
| author | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-10 20:39:00 -0400 |
|---|---|---|
| committer | JP Appel <jeanpierre.appel01@gmail.com> | 2025-08-10 20:39:00 -0400 |
| commit | 49a2d76d2be793f9aeddd9997ae8abba4a7f03f2 (patch) | |
| tree | 1e831080aed8ba488706ba3484c01dcd5489cbb6 /pkg/data/get_test.go | |
| parent | 92de2b63b6bd0642b92e7ca1c6110bab7f3a2e6b (diff) | |
Fix approximate queries on nullable categories
Diffstat (limited to 'pkg/data/get_test.go')
| -rw-r--r-- | pkg/data/get_test.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/data/get_test.go b/pkg/data/get_test.go index aa1e43e..f5f20ab 100644 --- a/pkg/data/get_test.go +++ b/pkg/data/get_test.go @@ -22,14 +22,14 @@ func singleDoc(t *testing.T) *sql.DB { } if _, err := db.Exec(` - INSERT INTO Authors (name) + INSERT INTO Authors (author) VALUES ("jp") `); err != nil { t.Fatal("err inserting author:", err) } if _, err := db.Exec(` - INSERT INTO Tags (name) + INSERT INTO Tags (tag) VALUES ("foo"), ("bar"), ("baz"), ("oof") `); err != nil { t.Fatal("err inserting tags:", err) @@ -72,14 +72,14 @@ func multiDoc(t *testing.T) *sql.DB { } if _, err := db.Exec(` - INSERT INTO Authors (name) + INSERT INTO Authors (author) VALUES ("jp"), ("anonymous") `); err != nil { t.Fatal("err inserting author:", err) } if _, err := db.Exec(` - INSERT INTO Tags (name) + INSERT INTO Tags (tag) VALUES ("foo"), ("bar"), ("baz"), ("oof") `); err != nil { t.Fatal("err inserting tags:", err) |
