From: marcmuel <noreply@github.com>
To: pgsql-jdbc@lists.postgresql.org
Subject: [pgjdbc/pgjdbc] fb3151: fix: use local TimestampUtil in PgStatement and Pg...
Date: Wed, 10 Nov 2021 01:45:28 -0800
Message-ID: <pgjdbc/pgjdbc/push/refs/heads/master/6b0c86-fb3151@github.com> (raw)
Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: fb315187220ba85e231dcaefd7fadad2457c477e
https://github.com/pgjdbc/pgjdbc/commit/fb315187220ba85e231dcaefd7fadad2457c477e
Author: marcmuel <marcus.mueller@schwarz-infosysteme.de>
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 <marcmuel@github.com>
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: noreply@github.com
Subject: Re: [pgjdbc/pgjdbc] fb3151: fix: use local TimestampUtil in PgStatement and Pg...
In-Reply-To: <pgjdbc/pgjdbc/push/refs/heads/master/6b0c86-fb3151@github.com>
References: <pgjdbc/pgjdbc/push/refs/heads/master/6b0c86-fb3151@github.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox