Skip to content

Commit 01f253b

Browse files
committed
Add test for bulk copy into time(0)
This test currently fails. I can't figure out what the server wants.
1 parent ab6e795 commit 01f253b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

bulkcopy_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ func TestBulkcopy(t *testing.T) {
5858
{"test_date_2", "2015-06-07", time.Date(2015, 6, 7, 0, 0, 0, 0, time.UTC)},
5959
{"test_time", time.Date(2010, 11, 12, 13, 14, 15, 123000000, time.UTC), time.Date(1, 1, 1, 13, 14, 15, 123000000, time.UTC)},
6060
{"test_time_2", "13:14:15.1230000", time.Date(1, 1, 1, 13, 14, 15, 123000000, time.UTC)},
61+
{"test_time_0", "13:14:15", time.Date(1, 1, 1, 13, 14, 15, 0, time.UTC)},
6162
{"test_tinyint", 255, nil},
6263
{"test_smallint", 32767, nil},
6364
{"test_smallintn", nil, nil},
@@ -256,6 +257,7 @@ func setupTable(ctx context.Context, t *testing.T, conn *sql.Conn, tableName str
256257
[test_date_2] [date] NULL,
257258
[test_time] [time](7) NULL,
258259
[test_time_2] [time](7) NULL,
260+
[test_time_0] [time](0) NULL,
259261
[test_smallmoney] [smallmoney] NULL,
260262
[test_money] [money] NULL,
261263
[test_tinyint] [tinyint] NULL,

0 commit comments

Comments
 (0)