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

[功能改进]: DBType和JdbcUtils对于Gauss数据库的处理 #6705

Open
3 tasks done
liubao68 opened this issue Feb 13, 2025 · 2 comments
Open
3 tasks done

[功能改进]: DBType和JdbcUtils对于Gauss数据库的处理 #6705

liubao68 opened this issue Feb 13, 2025 · 2 comments

Comments

@liubao68
Copy link

liubao68 commented Feb 13, 2025

确认

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

功能改进

在DBType里面的Guass定义如下:

    /**
     * Gauss
     */
    GAUSS("zenith", "Gauss 数据库"),

JdbcUtils使用的URL如下:

    public static DbType getDbType(String jdbcUrl) {
        Assert.isFalse(StringUtils.isBlank(jdbcUrl), "Error: The jdbcUrl is Null, Cannot read database type");
        String url = jdbcUrl.toLowerCase();
        ...
        } else if (url.contains(":zenith:")) {
            return DbType.GAUSS;
        } 
       ...
        } else {
            logger.warn("The jdbcUrl is " + jdbcUrl + ", Mybatis Plus Cannot Read Database type or The Database's Not Supported!");
            return DbType.OTHER;
        }
    }

但是从华为云官网(参考: https://support.huaweicloud.com/distributed-devg-v8-gaussdb/gaussdb-12-0056.html )并未查询到任何驱动使用 zenith

请问下这里的 GAUSS 具体是指哪个驱动?参考的信息是什么?是否需要改进?

参考资料

No response

@miemieYaho
Copy link
Member

@liubao68
Copy link
Author

根据你给的信息,似乎提交者使用的是自己内部私有的驱动。 这个提交不能作为华为GaussDB的官方提交。
后续我看下能否获得华为官方发布的JDBC驱动(通过maven中央仓获取),然后提交官方支持的JDBC相关代码。

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