diff options
author | mattn <mattn.jp@gmail.com> | 2017-07-01 20:48:21 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-01 20:48:21 +0900 |
commit | 8a4c825cfc99b620bd78dbeac30348782a3b3eb9 (patch) | |
tree | ecca0bc608fe592ac2007e6cb180c71a1375b558 /sqlite3_test.go | |
parent | Merge pull request #429 from emakeev/cgo_panic_fix (diff) | |
parent | Don't convert Unix times to nanoseconds when querying datetime fields. Fixes ... (diff) | |
download | golite-8a4c825cfc99b620bd78dbeac30348782a3b3eb9.tar.gz golite-8a4c825cfc99b620bd78dbeac30348782a3b3eb9.tar.xz |
Merge pull request #431 from deepilla/issue-430
Don't convert Unix times to nanoseconds when querying datetime fields…
Diffstat (limited to 'sqlite3_test.go')
-rw-r--r-- | sqlite3_test.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sqlite3_test.go b/sqlite3_test.go index 03b678d..e563479 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -403,6 +403,7 @@ func TestTimestamp(t *testing.T) { }{ {"nonsense", time.Time{}}, {"0000-00-00 00:00:00", time.Time{}}, + {time.Time{}.Unix(), time.Time{}}, {timestamp1, timestamp1}, {timestamp2.Unix(), timestamp2.Truncate(time.Second)}, {timestamp2.UnixNano() / int64(time.Millisecond), timestamp2.Truncate(time.Millisecond)}, |