aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattn <mattn.jp@gmail.com>2013-12-05 15:55:55 -0800
committermattn <mattn.jp@gmail.com>2013-12-05 15:55:55 -0800
commitafb81456924a13f8a8653ac8a8b8d017e8ba37f0 (patch)
treedb7f2f7407aa6c14e48f7231c717f829780e3ce1
parentMerge pull request #96 from ericfrederich/eric_dev (diff)
parentNext(): populate Row with []byte instead of string, as per driver doc (diff)
downloadgolite-afb81456924a13f8a8653ac8a8b8d017e8ba37f0.tar.gz
golite-afb81456924a13f8a8653ac8a8b8d017e8ba37f0.tar.xz
Merge pull request #97 from mpl/master
Next(): populate Row with []byte instead of string, as per driver doc
-rw-r--r--sqlite3.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/sqlite3.go b/sqlite3.go
index d2c566a..29166ed 100644
--- a/sqlite3.go
+++ b/sqlite3.go
@@ -525,7 +525,7 @@ func (rc *SQLiteRows) Next(dest []driver.Value) error {
dest[i] = time.Time{}
}
default:
- dest[i] = s
+ dest[i] = []byte(s)
}
}