如何在数据库中使用定长数组? 例如 Name [20]byte #504

Closed
opened 2016-12-12 02:04:51 +00:00 by axlrose · 2 comments
axlrose commented 2016-12-12 02:04:51 +00:00 (Migrated from github.com)

使用的是Name [20]byte xorm:"char(20)" 或者 varchar(20)
运行就报错
panic: reflect: call of reflect.Value.IsNil on array Value

使用的数据库是SQLite3

使用的是Name [20]byte `xorm:"char(20)"` 或者 varchar(20) 运行就报错 panic: reflect: call of reflect.Value.IsNil on array Value 使用的数据库是SQLite3

This isn't resolved since currently only support JSON format.

This isn't resolved since currently only support JSON format.
lunny referenced this issue from a commit 2020-01-19 09:34:09 +00:00
lunny removed the
kind
enhancement
label 2021-06-07 08:01:21 +00:00

You can find #1922 added a test for this issue.

You can find #1922 added a test for this issue.
lunny closed this issue 2021-06-07 09:36:23 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xorm/xorm#504
No description provided.