diff options
author | cds <cds@sci3> | 2012-09-11 08:17:09 -0500 |
---|---|---|
committer | cds <cds@sci3> | 2012-09-11 08:35:53 -0500 |
commit | 3456489fa1fb94197fcec4fc4c0de7000bf1f1be (patch) | |
tree | 1dd8451ea2919e2b56741100eecced02fd55ea38 /sqlite3.go | |
parent | Merge pull request #19 from leskets/master (diff) | |
download | golite-3456489fa1fb94197fcec4fc4c0de7000bf1f1be.tar.gz golite-3456489fa1fb94197fcec4fc4c0de7000bf1f1be.tar.xz |
gofmt + fix erroneous t.Errorf("foo:", err) statements to t.Error("foo:", err) .
Original:
--- FAIL: TestInsert (0.00 seconds)
sqlite3_test.go:42: Failed to create table:%!(EXTRA *errors.errorString=unable to open database file)
With corrections:
--- FAIL: TestInsert (0.00 seconds)
sqlite3_test.go:42: Failed to create table: unable to open database file
Diffstat (limited to 'sqlite3.go')
-rw-r--r-- | sqlite3.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -284,11 +284,11 @@ func (rc *SQLiteRows) Next(dest []driver.Value) error { switch C.sqlite3_column_type(rc.s.s, C.int(i)) { case C.SQLITE_INTEGER: val := int64(C.sqlite3_column_int64(rc.s.s, C.int(i))) - switch rc.decltype[i]{ + switch rc.decltype[i] { case "timestamp": dest[i] = time.Unix(val, 0) case "boolean": - dest[i] = val>0 + dest[i] = val > 0 default: dest[i] = val } |