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

[功能改进]: 达梦数据库使用ddl初始化脚本问题 #6656

Open
3 tasks done
Moonlyn5 opened this issue Jan 8, 2025 · 2 comments
Open
3 tasks done

[功能改进]: 达梦数据库使用ddl初始化脚本问题 #6656

Moonlyn5 opened this issue Jan 8, 2025 · 2 comments

Comments

@Moonlyn5
Copy link

Moonlyn5 commented Jan 8, 2025

确认

  • 我的版本是最新版本, 我的版本号与 version 相同, 并且项目里无依赖冲突
  • 我已经在 issue 中搜索过, 确认问题没有被提出过
  • 我已经修改标题, 将标题中的 描述 替换为遇到的问题

功能改进

mybatisplus 软件版本 3.5.7

数据库
DM Database Server 64 V8

DB Version: 0x7000c

使用ddl初始化数据库时 OracleDdlGenerator.existTable 执行sql

select COUNT(1) AS NUM from user_tables where table_name = 'DDL_HISTORY';

返回1 导致后续建表sql无法执行,然后执行脚本时报错。

参考资料

No response

@Moonlyn5
Copy link
Author

Moonlyn5 commented Jan 8, 2025

是否需要将执行sql修改为 "SELECT COUNT(1) AS NUM FROM ALL_TABLES WHERE table_name='"+ getDdlHistory() + "' and OWNER='"+databaseName+"'"

@nieqiurong
Copy link
Contributor

没有这个数据库环境,建议你按照com.baomidou.mybatisplus.extension.ddl.history.IDdlGenerator接口实现一个DM的,如果在DM下通用的你可以考虑PR过来.

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