[pgjdbc/pgjdbc] fb3151: fix: use local TimestampUtil in PgStatement and Pg...

Поиск
Список
Период
Сортировка
Искать

[pgjdbc/pgjdbc] fb3151: fix: use local TimestampUtil in PgStatement and Pg...

От:
marcmuel <noreply@github.com>
Дата:
  Branch: refs/heads/master
  Home:   https://github.com/pgjdbc/pgjdbc
  Commit: fb315187220ba85e231dcaefd7fadad2457c477e
      https://github.com/pgjdbc/pgjdbc/commit/fb315187220ba85e231dcaefd7fadad2457c477e
  Author: marcmuel 
  Date:   2021-11-10 (Wed, 10 Nov 2021)

  Changed paths:
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgCallableStatement.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java
    M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java

  Log Message:
  -----------
  fix: use local TimestampUtil in PgStatement and PgResultset for thread safety (#2291)

* fix: use local TimestampUtil in PgStatement and PgResultset for thread
safety

TimestampUtil is not thread safe. It raises exceptions when multiple threads use ResultSets of one connection. 
If PgStatement and PgResultSet use their own TimestampUtil no synchronize is needed.

This belongs to Issue fix: synchronize modification of shared calendar (#921)

Co-authored-by: Marcus Müller 




FAQ