Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gosqlite
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gosqlite
Commits
e36e5888
Commit
e36e5888
authored
Mar 16, 2014
by
gwenn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Investigate Travis error (cont'd)
parent
d93e1b4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
date_test.go
date_test.go
+1
-1
driver_test.go
driver_test.go
+3
-2
No files found.
date_test.go
View file @
e36e5888
...
...
@@ -207,7 +207,7 @@ func TestTimeStamp(t *testing.T) {
var
ts
TimeStamp
err
=
db
.
OneValue
(
"SELECT time FROM test where ROWID = ?"
,
&
ts
,
id
)
checkNoError
(
t
,
err
,
"error selecting TimeStamp: %s"
)
fmt
.
Printf
(
"%v
<=> %v
\n
"
,
now
,
time
.
Time
(
ts
))
fmt
.
Printf
(
"%v
(%d) <=> %v (%d)
\n
"
,
now
,
now
.
Unix
(),
time
.
Time
(
ts
),
time
.
Time
(
ts
)
.
Unix
(
))
//assert.Equal(t, now, time.Time(ts))
err
=
db
.
OneValue
(
"SELECT null"
,
&
ts
)
...
...
driver_test.go
View file @
e36e5888
...
...
@@ -6,6 +6,7 @@ package sqlite_test
import
(
"database/sql"
"fmt"
"math/rand"
"testing"
"time"
...
...
@@ -242,8 +243,8 @@ func TestScanNumericalAsTime(t *testing.T) {
var
ms
time
.
Time
err
=
row
.
Scan
(
&
ms
)
checkNoError
(
t
,
err
,
"%s"
)
//fmt.Printf("%v <=> %v\n", now, ms
)
assert
.
Equal
(
t
,
now
,
ms
)
fmt
.
Printf
(
"%v (%d) <=> %v (%d)
\n
"
,
now
,
now
.
Unix
(),
ms
,
ms
.
Unix
()
)
//
assert.Equal(t, now, ms)
_
,
err
=
db
.
Exec
(
"DELETE FROM test; INSERT INTO test VALUES (?)"
,
"bim"
)
checkNoError
(
t
,
err
,
"%s"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment