SQLBot icon indicating copy to clipboard operation
SQLBot copied to clipboard

[BUG]瀚高数据库连接报错求助

Open dmacroai opened this issue 1 year ago • 9 comments

添加瀚高数据源报错: An error occurred in the plugin, please contact the author of junjiem/db_query/db_query for help, error type: RuntimeError, error details: Error executing SQL: Could not determine version from string 'HighGo Security Enterprise Edition Database System 4.5.7 on KylinV10 x86_64,build on 20211014'

dmacroai avatar Oct 13 '25 08:10 dmacroai

很抱歉,我们现在还没有对HighGo 数据库进行支持,所以会报错。

xuwei-fit2cloud avatar Oct 13 '25 09:10 xuwei-fit2cloud

同样的问题,初步定位到sqlalchemy中的base.py中3532行正则表达式验证不通过。可以考虑修改代码,增加 HighGo Security Enterprise Edition Database System解决。

yayaba0614 avatar Oct 13 '25 10:10 yayaba0614

dataease 就可以用 postgresql 连接瀚高数据库,sqlbot 却不行

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2025年10月13日 17:31 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [dataease/SQLBot] [BUG]瀚高数据库连接报错求助 (Issue #306) | xuwei-fit2cloud left a comment (dataease/SQLBot#306)

很抱歉,我们现在还没有对HighGo 数据库进行支持,所以会报错。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dmacroai avatar Oct 13 '25 14:10 dmacroai

两个产品技术栈不一样。也许可以以 PG 数据源来对接,但我们并没有对应的数据库环境,我们没办法确定可用,所以不好放开限制。

xuwei-fit2cloud avatar Oct 14 '25 06:10 xuwei-fit2cloud

我们安装了最新的 4.5版本的瀚高数据库,sqlalchemy 在连接的时候确实有问题,它固化了 PG 的版本为 PostgreSQL 12.7,我们不希望去修改 sqlalchemy 的代码来解决问题,因为这个可能会影响到我们后续对 sqlalchemy 的版本升级,所以目前不会考虑支持瀚高,还请见谅。

xuwei-fit2cloud avatar Oct 14 '25 07:10 xuwei-fit2cloud

即便如此,作为一款优秀的国产开源软件,还是建议能够积极拥抱国产数据库软件,争做信息技术产业创新领头羊!

瀚高数据库在政务信息领域应用也挺广泛了。

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2025年10月14日 15:20 | | 收件人 | @.> | | 抄送至 | @.>@.> | | 主题 | Re: [dataease/SQLBot] [BUG]瀚高数据库连接报错求助 (Issue #306) | xuwei-fit2cloud left a comment (dataease/SQLBot#306)

我们安装了最新的 4.5版本的瀚高数据库,sqlalchemy 在连接的时候确实有问题,它固化了 PG 的版本为 PostgreSQL 12.7,我们不希望去修改 sqlalchemy 的代码来解决问题,因为这个可能会影响到我们后续对 sqlalchemy 的版本升级,所以目前不会考虑支持瀚高,还请见谅。

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

dmacroai avatar Oct 14 '25 07:10 dmacroai

刚刚查了一下,人大金仓其实也是类似的,人大金仓数据源我们不是使用 sqlalchemy 对接的,可以试试新建人大金仓数据源,填入瀚高的链接信息试试。我们这边测试是可以的。

xuwei-fit2cloud avatar Oct 14 '25 08:10 xuwei-fit2cloud

刚刚查了一下,人大金仓其实也是类似的,人大金仓数据源我们不是使用 sqlalchemy 对接的,可以试试新建人大金仓数据源,填入瀚高的链接信息试试。我们这边测试是可以的。

果然可以,非常感谢!

dmacroai avatar Oct 14 '25 09:10 dmacroai

我尝试通过人大金仓跟PG连接瀚高数据库,提示:authentication method 13 not support,请问这是驱动不兼容吗?可以更换驱动吗?

lgp520 avatar Jan 27 '26 01:01 lgp520