Skip to content

Commit 67850f9

Browse files
authored
fix PostgreSQL minimum timestamp precision
1 parent 1fcb9dd commit 67850f9

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class PostgresDialect extends AbstractDialect {
3838
// Define MAX/MIN precision of TIMESTAMP type according to PostgreSQL docs:
3939
// https://www.postgresql.org/docs/12/datatype-datetime.html
4040
private static final int MAX_TIMESTAMP_PRECISION = 6;
41-
private static final int MIN_TIMESTAMP_PRECISION = 1;
41+
private static final int MIN_TIMESTAMP_PRECISION = 0;
4242

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

0 commit comments

Comments
 (0)