We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Following is my golang code:
package main import "fmt" import "database/sql" import _ "github.com/mattn/go-sqlite3" func main() { db, _ := sql.Open("sqlite3", "temp.db") db.Exec("CREATE TABLE X (col TEXT)") db.Exec("INSERT INTO X (col) VALUES ('abc')") rows, _ := db.Query("SELECT col FROM X") rows.Next() var col interface{} rows.Scan(&col) rows.Close() fmt.Printf("%T\n", col) }
It prints []uint8. Shouldn't it print string ?
The text was updated successfully, but these errors were encountered:
go-sqlite3/sqlite3.go
Line 2065 in 3fa1c55
Sorry, something went wrong.
No branches or pull requests
Following is my golang code:
It prints []uint8. Shouldn't it print string ?
The text was updated successfully, but these errors were encountered: