38 Star 104 Fork 116

openGauss/openGauss-connector-jdbc

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
test_en.md 1.49 KB
一键复制 编辑 原始数据 按行查看 历史
travelliu 提交于 2024-04-29 12:31 . test: fix some uint test

Test

  1. Configure 3 compatible attribute databases in the configuration file. A/B/PG

  2. Used separately in unit tests

    DBCOMPATIBILITY BaseTest4 Desc
    A BaseTest4.java A /TestUtil.openDB
    PG BaseTest4PG.java PG / TestUtil.openDBPG
    B BaseTest4B.java B / TestUtil.openDBB
  3. Add version assertion. At least that version is required to run.

    // assumeMiniOgVersion
    public void setUp() throws Exception {
        super.setUp();
        assumeMiniOgVersion("opengauss 6.0.0",6,0,0);
    }

create database

Create a database in three compatible modes A/PG/B

gsql 

create database jdbc_utf8_a ENCODING='utf8' DBCOMPATIBILITY='A';

create database jdbc_utf8_pg ENCODING='utf8' DBCOMPATIBILITY='PG';

create database jdbc_utf8_b ENCODING='utf8' DBCOMPATIBILITY='B';

\c jdbc_utf8_a

\c jdbc_utf8_pg

\c jdbc_utf8_b

create user

gsql -r postgres
create user jdbc with password 'jdbc@123' sysadmin;

pg_hba.conf

The database password authentication method is sha256

host    all             jdbc    0.0.0.0/0       sha256
host    replication     jdbc        0.0.0.0/0            sha256

config build.properties

cp build.properties build.local.properties

server=localhost
port=5432
database_a=jdbc_utf8_a
database_pg=jdbc_utf8_pg
database_b=jdbc_utf8_b
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/opengauss/openGauss-connector-jdbc.git
git@gitee.com:opengauss/openGauss-connector-jdbc.git
opengauss
openGauss-connector-jdbc
openGauss-connector-jdbc
master

搜索帮助

Cb406eda 1850385 E526c682 1850385