diff options
author | mattn <mattn.jp@gmail.com> | 2012-09-11 17:13:11 -0700 |
---|---|---|
committer | mattn <mattn.jp@gmail.com> | 2012-09-11 17:13:11 -0700 |
commit | 8d4548d72cdb03ef6556fde5ecef0b58db9e64bc (patch) | |
tree | 048ae2c78328b5e281949ef59202495c4b69bbcc /sqlite3.go | |
parent | Merge pull request #19 from leskets/master (diff) | |
parent | Replace t.Error(); return statement pairs with single t.Fatal() (diff) | |
download | golite-8d4548d72cdb03ef6556fde5ecef0b58db9e64bc.tar.gz golite-8d4548d72cdb03ef6556fde5ecef0b58db9e64bc.tar.xz |
Merge pull request #22 from cdsks/master
Fix sql.DB leaks in unit tests so that tests pass on vmware hgfs
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 } |