You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Environments (please complete the following information):**
- OS: [e.g. Linux]
- go-zero version [e.g. 1.2.1]
- goctl version [e.g. 1.2.1, optional]
**More description**
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
What version of goctl are you using? There will be no panic on my side, only index errors, and this error is the columns you declared on unique index dept_name_index are mismatched, pls upgrade goctl to the latest version and try again.
Describe the bug
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior, if applicable:
The code is
) ENGINE = InnoDB COLLATE utf8mb4_general_ci COMMENT 'user table';
panic: runtime error: invalid memory address or nil pointer dereference
[signal 0xc0000005 code=0x0 addr=0x10 pc=0x1b01883]
goroutine 1 [running]:
github.com/zeromicro/go-zero/tools/goctl/model/sql/parser.checkDuplicateUniqueIndex(0xc00064f310?, {0xc000c75480, 0x4})
/github/workspace/tools/goctl/model/sql/parser/parser.go:182 +0x323
github.com/zeromicro/go-zero/tools/goctl/model/sql/parser.Parse({0xc000423080, 0x3e}, {0x0, 0x0}, 0x20?)
The text was updated successfully, but these errors were encountered: