代码拉取完成,页面将自动刷新
配置文件里配置3个兼容属性数据库. A/B/PG
单元测试里分别使用
DBCOMPATIBILITY | BaseTest4 | 说明 |
---|---|---|
A | BaseTest4.java | A模式继承 /TestUtil.openDB |
PG | BaseTest4PG.java | PG模式继承 TestUtil.openDBPG |
B | BaseTest4B.java | B模式继承 TestUtil.openDBB |
增加版本断言. 针对需要至少那个版本才能运行
// assumeMiniOgVersion
public void setUp() throws Exception {
super.setUp();
assumeMiniOgVersion("opengauss 6.0.0",6,0,0);
}
创建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
gsql -r postgres
create user jdbc with password 'jdbc@123' sysadmin;
数据库密码认证方式为sha256
host all jdbc 0.0.0.0/0 sha256
host replication jdbc 0.0.0.0/0 sha256
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
5.0.x ignore 183 6.0.0 ignore 162
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。