diff options
author | Dimitri Roche <dimroc@gmail.com> | 2019-01-26 14:54:27 -0500 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-02-11 00:48:38 +0900 |
commit | ae5cbb218c63c58afbe7237343b8b3ef28723a4b (patch) | |
tree | 00bbfb8c422d0e8f9542c5dfb4fa474f26c7b73b | |
parent | column types text, varchar, *char return as strings: (diff) | |
download | golite-ae5cbb218c63c58afbe7237343b8b3ef28723a4b.tar.gz golite-ae5cbb218c63c58afbe7237343b8b3ef28723a4b.tar.xz |
column_type SQLITE_TEXT returned as string by default
-rw-r--r-- | sqlite3.go | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -223,7 +223,6 @@ var SQLiteTimestampFormats = []string{ const ( columnDate string = "date" columnDatetime string = "datetime" - columnText string = "text" columnTimestamp string = "timestamp" ) @@ -2062,14 +2061,8 @@ func (rc *SQLiteRows) Next(dest []driver.Value) error { t = t.In(rc.s.c.loc) } dest[i] = t - case columnText: - dest[i] = s default: - if strings.Contains(strings.ToLower(rc.decltype[i]), "char") { - dest[i] = s - } else { - dest[i] = []byte(s) - } + dest[i] = s } } } |