Dialect::MySQL::GetColumns() raise "Unknown colType" as of MySQL 8.0.17 #1604
Labels
No Label
backport/done
backport/v1
blocked
db
oracle
db
sqlserver
duplicate
feature
cache
frontport/done
frontport/main
invalid
kind
breaking
kind
bug
kind
build
kind
dependencies
kind
docs
kind
driver
kind
enhancement
kind
feature
kind
performance
kind
proposal
kind
question
kind
refactor
kind
testing
need
feedback
need
test
proposal:accepted
RaspBerry Pi
regression
skip-changelog
upstream
wip
wontfix
No Milestone
No Assignees
3 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xorm/xorm#1604
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As of MySQL 8.0.17, the display width attribute is deprecated for integer data types.
See MySQL 8.0 Reference Manual - 11.1.1 Numeric Data Type Syntax.
So the code below in
dialect_mysql.go
parseCOLUMN_TYPE
wrong(expecttinyint(4) unsigned
but gottinyint unsigned
):Looks like need more code like this:
Dialect:MySQL::GetColumns() raise "Unknown colType" as of MySQL 8.0.17to Dialect::MySQL::GetColumns() raise "Unknown colType" as of MySQL 8.0.17xorm v1.2.5 golang 1.17
FILE dialects/mysql.go LINE 486
Change to:
Could you send a PR with some tests?