[improvement](pg jdbc)Support for automatically obtaining the precision of the postgresql timestamp type (#20909)

This commit is contained in:
zy-kkk
2023-06-16 23:41:09 +08:00
committed by GitHub
parent 367f64e7bd
commit fe18cfa2fb
5 changed files with 24 additions and 8 deletions

View File

@ -160,4 +160,9 @@ CREATE TABLE catalog_pg_test.test_insert (
CREATE TABLE catalog_pg_test.wkb_test (
id SERIAL PRIMARY KEY,
location bytea
);
);
CREATE TABLE catalog_pg_test.dt_test (
ts_field TIMESTAMP(3),
tzt_field TIMESTAMPTZ(3)
);

View File

@ -2656,4 +2656,11 @@ insert into catalog_pg_test.test12 values
insert into catalog_pg_test.test12 values
(2, '980dd890-f7fe-4fff-999d-873516108b2e');
INSERT INTO catalog_pg_test.wkb_test (location) SELECT ST_AsBinary(ST_GeomFromText('POLYGON((0 0,0 1,1 1,1 0,0 0))',4326));
INSERT INTO catalog_pg_test.wkb_test (location) SELECT ST_AsBinary(ST_GeomFromText('POLYGON((0 0,0 1,1 1,1 0,0 0))',4326));
INSERT INTO catalog_pg_test.dt_test (ts_field, tzt_field)
VALUES
(
'2023-06-16 12:34:56.123',
'2023-06-16 12:34:56.123+08'
);