fix UT case for package gdb

This commit is contained in:
John Guo 2022-02-08 16:38:10 +08:00
parent cea6cbc7db
commit bd4948c084

View File

@ -1563,7 +1563,7 @@ func Test_Types(t *testing.T) {
t.Assert(one["blob"].String(), data["blob"])
t.Assert(one["binary"].String(), data["binary"])
t.Assert(one["date"].String(), data["date"])
t.Assert(one["time"].String(), `0000-01-01 10:00:01`)
t.Assert(one["time"].String(), `10:00:01`)
t.Assert(one["decimal"].String(), -123.46)
t.Assert(one["double"].String(), data["double"])
t.Assert(one["bit"].Int(), data["bit"])
@ -1587,7 +1587,7 @@ func Test_Types(t *testing.T) {
t.Assert(obj.Blob, data["blob"])
t.Assert(obj.Binary, data["binary"])
t.Assert(obj.Date.Format("Y-m-d"), data["date"])
t.Assert(obj.Time.String(), `0000-01-01 10:00:01`)
t.Assert(obj.Time.String(), `10:00:01`)
t.Assert(obj.Decimal, -123.46)
t.Assert(obj.Double, data["double"])
t.Assert(obj.Bit, data["bit"])