Skip to content

Commit d09dce0

Browse files
committed
Fix TEXT to []byte conversion for driver.Value.
1 parent a536c43 commit d09dce0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

go1/sqlite3/sqlite3.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1010,7 +1010,7 @@ func (s *Stmt) scanDynamic(i C.int, v *interface{}, driverValue bool) error {
10101010
*v = float64(C.sqlite3_column_double(s.stmt, i))
10111011
case TEXT:
10121012
if driverValue {
1013-
*v = blob(s.stmt, i, true)
1013+
*v = []byte(text(s.stmt, i, false))
10141014
} else {
10151015
*v = text(s.stmt, i, true)
10161016
}

0 commit comments

Comments
 (0)