表中有记录,但字段内容为null时,QueryString返回的结果集为空 #691

Closed
opened 2017-08-25 15:24:36 +00:00 by Leadrive · 0 comments
Leadrive commented 2017-08-25 15:24:36 +00:00 (Migrated from github.com)

MySQL环境,其它没测试。
rows, _ := engine.QueryString(sql.(string), bindings...)

select IDNumber, FullName from {Borrower} where Guid = ? and IsValid = 1
如果字段内容为null,则结果集中没有相应的内容。打印出来的结果为[map[]]
实际应该为 [map[IDNumber: FullName:]]

麻烦看看是否为bug

MySQL环境,其它没测试。 rows, _ := engine.QueryString(sql.(string), bindings...) select IDNumber, FullName from {Borrower} where Guid = ? and IsValid = 1 如果字段内容为null,则结果集中没有相应的内容。打印出来的结果为[map[]] 实际应该为 [map[IDNumber: FullName:]] 麻烦看看是否为bug
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#691
No description provided.