[New] Constructor for time types, that accepts time.Time. (TimeT, TimezT, DateT, ...)

This commit is contained in:
go-jet 2019-08-06 11:41:45 +02:00
parent 647ef21aaf
commit 6ee2f45548
11 changed files with 182 additions and 22 deletions

View file

@ -533,7 +533,7 @@ ORDER BY city.city_id, address.address_id, customer.customer_id;
assert.NilError(t, err)
assert.Equal(t, len(dest), 2)
testutils.AssertJSON(t, `
testutils.AssertJSON(t, dest, `
[
{
"CityID": 312,
@ -572,7 +572,7 @@ ORDER BY city.city_id, address.address_id, customer.customer_id;
]
}
]
`, dest)
`)
}
func TestJoinQuerySliceWithPtrs(t *testing.T) {
@ -1136,7 +1136,7 @@ func TestSelectStaff(t *testing.T) {
assert.NilError(t, err)
testutils.AssertJSON(t, `
testutils.AssertJSON(t, staffs, `
[
{
"StaffID": 1,
@ -1165,7 +1165,7 @@ func TestSelectStaff(t *testing.T) {
"Picture": null
}
]
`, staffs)
`)
}
func TestSelectTimeColumns(t *testing.T) {