Skip to content
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

添加唯一索引报错 #151

Closed
liuqian1990 opened this issue Jan 8, 2020 · 5 comments
Closed

添加唯一索引报错 #151

liuqian1990 opened this issue Jan 8, 2020 · 5 comments

Comments

@liuqian1990
Copy link
Contributor

2020/01/08 11:25:31.074 osc.go:768: [error] origin sql: alter table tb_archery add unique index uniq_test_ghost_3 (test_ghost_3)
2020/01/08 11:25:31.074 osc.go:769: [error] parsed after: ADD UNIQUE uniq_test_ghost_3(test_ghost_3)

@liuqian1990
Copy link
Contributor Author

发现 uniq_test_ghost_3(test_ghost_3)这个没有空隔,成了一个字串

@hanchuanchuan
Copy link
Owner

暂时修改成 ADD UNIQUE uniq_test_ghost_3(test_ghost_3) 格式即可,解析ALTER子句时添加了长度校验,以避免解析错误。
稍后会修复。

@liuqian1990
Copy link
Contributor Author

还是一样报错

@hanchuanchuan
Copy link
Owner

image

@hanchuanchuan
Copy link
Owner

问题已修复,点击 Releases 选择 v1.1.6-13 版本下载
或者使用 docker pull hanchuanchuan/goinception:latest 获取最新docker版

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

No branches or pull requests

2 participants