beedb icon indicating copy to clipboard operation
beedb copied to clipboard

Select() 方法,里面传递的表字段竟然有区分大小写,Why?

Open jiemoon opened this issue 11 years ago • 0 comments

table : userinfo(Uid, Username)

err = orm.Where("uid > ?", 4).Select("uid,username").FindAll(&allusers) fmt.Println(allusers) // [{0 } {0 }]

err = orm.Where("uid > ?", 4).Select("Uid,Username").FindAll(&allusers) fmt.Println(allusers) // [{5 jiemoon} {6 Tom}]

jiemoon avatar Feb 15 '14 13:02 jiemoon