summaryrefslogtreecommitdiffhomepage
path: root/src/dbx/db.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/dbx/db.go')
-rw-r--r--src/dbx/db.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/dbx/db.go b/src/dbx/db.go
index 9086265..30f14f7 100644
--- a/src/dbx/db.go
+++ b/src/dbx/db.go
@@ -176,12 +176,7 @@ func scanToStruct[T any](rs *sql.Rows) (T, error) {
}
if strings.Contains(tag, ";") {
- parts := strings.Split(tag, ";")
- tag, dbcols := parts[0], parts[1:]
- if tag != "array" {
- /* TODO: This is bad… it should log something */
- return zero, fmt.Errorf("invalid `db:\"…\"` tag ‘%s’", tag)
- }
+ dbcols := strings.Split(tag, ";")
fv := v.Field(i)
if fv.Kind() != reflect.Array {
return zero, fmt.Errorf("field ‘%s’ is not array",