-
Notifications
You must be signed in to change notification settings - Fork 2.3k
ColumnType.Length() Support #1132
New issue
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
Comments
As written in the discussion at #667, the length MySQL reports is not the same as a string in Go with the same content would have. It seems to be the internal space requirement for storing it within MySQL, which is rather useless IMO. |
In my use case with this driver, I'm looking at columns that are received with resultset, and when the column/field is Unless the client exposes I get that |
Could we expose a |
The README states "This driver supports the ColumnType interface introduced in Go 1.8, with the exception of ColumnType.Length(), which is currently not supported."
I found the
ColumnTypeLength
function commented out here:mysql/rows.go
Lines 66 to 68 in 578c4c8
Based on the discussion in #667, it appears there were no limiting factors preventing this from being implemented: #667 (comment).
@julienschmidt can you confirm? Is this something that no one has gotten to yet? Or did you find some sort of limitation trying to implement this?
The text was updated successfully, but these errors were encountered: