代码拉取完成,页面将自动刷新
Configure 3 compatible attribute databases in the configuration file. A/B/PG
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 |
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 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
gsql -r postgres
create user jdbc with password 'jdbc@123' sysadmin;
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
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
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。