Skip to content

fix: parseDDL index out of range#91

Merged
jinzhu merged 1 commit intogo-gorm:masterfrom
GGXXLL:master
Apr 26, 2022
Merged

fix: parseDDL index out of range#91
jinzhu merged 1 commit intogo-gorm:masterfrom
GGXXLL:master

Conversation

@GGXXLL
Copy link
Copy Markdown
Contributor

@GGXXLL GGXXLL commented Apr 25, 2022

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

parseDDL index out of range when characters take up more than one byte

User Case Description

Panic(index out of range) when sql like: CREATE TABLE `test` (`text` varchar(10) DEFAULT "测试,")

@jinzhu jinzhu merged commit d34fe2a into go-gorm:master Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants