[improvement](pg jdbc)Support for automatically obtaining the precision of the postgresql timestamp type (#20909)
This commit is contained in:
@ -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)
|
||||
);
|
||||
|
||||
@ -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'
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user