Skip to content

Commit 319962c

Browse files
kgeis1996fanrui
authored andcommitted
[FLINK-36303][JDBC/postgres] fix PostgreSQL minimum timestamp precision
1 parent dd89235 commit 319962c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flink-connector-jdbc-postgres/src/main/java/org/apache/flink/connector/jdbc/postgres/database/dialect/PostgresDialect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public class PostgresDialect extends AbstractDialect {
3939
// Define MAX/MIN precision of TIMESTAMP type according to PostgreSQL docs:
4040
// https://www.postgresql.org/docs/12/datatype-datetime.html
4141
private static final int MAX_TIMESTAMP_PRECISION = 6;
42-
private static final int MIN_TIMESTAMP_PRECISION = 1;
42+
private static final int MIN_TIMESTAMP_PRECISION = 0;
4343

4444
// Define MAX/MIN precision of DECIMAL type according to PostgreSQL docs:
4545
// https://www.postgresql.org/docs/12/datatype-numeric.html#DATATYPE-NUMERIC-DECIMAL

0 commit comments

Comments
 (0)