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

操作达梦数据库插入数据报错不存在IDENTITY列 #7260

Closed
YiTianChiSiDun1 opened this issue Oct 31, 2024 · 4 comments
Closed

操作达梦数据库插入数据报错不存在IDENTITY列 #7260

YiTianChiSiDun1 opened this issue Oct 31, 2024 · 4 comments
Assignees
Labels
type:question general questions

Comments

@YiTianChiSiDun1
Copy link

Your Question

操作达梦数据库插入数据报错不存在IDENTITY列,但是这个表中并没有自增字段。而且为什么他会自动执行 :SET IDENTITY_INSERT "device_group" ON;

Error -2717: 第1 行附近出现错误: 表[device_group]不存在IDENTITY列

The document you expected this should be explained

Expected answer

@YiTianChiSiDun1
Copy link
Author

目前的话只有执行原生sql才能避免这个问题

@YiTianChiSiDun1
Copy link
Author

找到了一种比较好的解决办法,就是给字段 tag 加上 autoIncrement:false强制给他关了就不会报错了

@mimicode
Copy link

mimicode commented Nov 3, 2024

#7246
原因是这个

@jinzhu
Copy link
Member

jinzhu commented Nov 15, 2024

可以修改下达梦 diver 来适配一下达梦的逻辑

@jinzhu jinzhu closed this as completed Nov 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:question general questions
Projects
None yet
Development

No branches or pull requests

3 participants