Replies: 1 comment 1 reply
-
Note that it returns MySQL returns length in their resultset header. But its meaning is differ from database/sql's. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Setup:
Example:
Output:
I would expect that the
Length()
method would return the mysql specified bit size, or at least have some way to get that piece of information from*sql.ColumnType
.I'm using
github.com/go-sql-driver/mysql v1.8.1
.Beta Was this translation helpful? Give feedback.
All reactions