improve time string parsing for invalid datetime

This commit is contained in:
John
2020-02-01 20:14:24 +08:00
parent 91bbff6ced
commit 4c3af63076
4 changed files with 15 additions and 8 deletions

View File

@ -8,10 +8,6 @@ func main() {
db := g.DB()
db.SetDebug(true)
one, e := db.Table("order.order o").LeftJoin("user.user u", "o.uid=u.id").Where("u.id", 1).One()
if e != nil {
panic(e)
}
g.Dump(one)
db.Table("user").Fields("DISTINCT id,nickname").Filter().All()
}