Closed
Description
Hello,
I need to get back the Mysql types of the columns of a request
Example code
columnTypes, err := rows.ColumnTypes()
...
for _, columnType := range columnTypes {
fmt.Printf("columnType = %#v\n", columnType.DatabaseTypeName())
}
this returns en empty string
Configuration
commit 382e13d
Go version: run go version
in your console
go1.8.1 darwin/amd64
Server version: E.g. MySQL 5.6, MariaDB 10.0.20
mysqld Ver 5.7.18-0ubuntu0.16.04.1 for Linux on x86_64 ((Ubuntu))
Server OS: E.g. Debian 8.1 (Jessie), Windows 10
Ubuntu 16.04
Linux nuc 4.4.0-77-generic #98-Ubuntu SMP Wed Apr 26 08:34:02 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
Metadata
Metadata
Assignees
Labels
No labels