Add test for date

scan-io
Jack Christensen 2014-07-11 14:39:06 -05:00
parent 93677e40dd
commit 294c05efcc
1 changed files with 1 additions and 0 deletions

View File

@ -991,6 +991,7 @@ func TestQueryRowCoreTypes(t *testing.T) {
{"select $1::float8", []interface{}{float64(1.23)}, []interface{}{&actual.f64}, allTypes{f64: 1.23}},
{"select $1::bool", []interface{}{true}, []interface{}{&actual.b}, allTypes{b: true}},
{"select $1::timestamptz", []interface{}{time.Unix(123, 5000)}, []interface{}{&actual.t}, allTypes{t: time.Unix(123, 5000)}},
{"select $1::date", []interface{}{time.Date(1987, 1, 2, 0, 0, 0, 0, time.Local)}, []interface{}{&actual.t}, allTypes{t: time.Date(1987, 1, 2, 0, 0, 0, 0, time.Local)}},
}
for i, tt := range tests {