Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ae5cbb2

Browse files
dimrocmattn
authored andcommitted
column_type SQLITE_TEXT returned as string by default
1 parent abc8991 commit ae5cbb2

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

‎sqlite3.go

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ var SQLiteTimestampFormats = []string{
223223
const (
224224
columnDate string = "date"
225225
columnDatetime string = "datetime"
226-
columnText string = "text"
227226
columnTimestamp string = "timestamp"
228227
)
229228

@@ -2062,14 +2061,8 @@ func (rc *SQLiteRows) Next(dest []driver.Value) error {
20622061
t = t.In(rc.s.c.loc)
20632062
}
20642063
dest[i] = t
2065-
case columnText:
2066-
dest[i] = s
20672064
default:
2068-
if strings.Contains(strings.ToLower(rc.decltype[i]), "char") {
2069-
dest[i] = s
2070-
} else {
2071-
dest[i] = []byte(s)
2072-
}
2065+
dest[i] = s
20732066
}
20742067
}
20752068
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /