Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkkAk-00045R-A5 for pgsql-jdbc@arkaria.postgresql.org; Wed, 10 Nov 2021 09:45:38 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1mkkAj-0004Vw-7r for pgsql-jdbc@arkaria.postgresql.org; Wed, 10 Nov 2021 09:45:37 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkkAi-0004T5-U8 for pgsql-jdbc@lists.postgresql.org; Wed, 10 Nov 2021 09:45:36 +0000 Received: from out-17.smtp.github.com ([192.30.252.200] helo=smtp.github.com) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mkkAc-0002Mp-UM for pgsql-jdbc@lists.postgresql.org; Wed, 10 Nov 2021 09:45:36 +0000 Received: from github.com (hubbernetes-node-3832f64.va3-iad.github.net [10.48.125.100]) by smtp.github.com (Postfix) with ESMTPA id A66E75C0213 for ; Wed, 10 Nov 2021 01:45:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=github.com; s=pf2014; t=1636537528; bh=2LqpEePX70Ki+nTgnaIgGMKFNVdb8xen1WhInuXEisg=; h=Date:From:To:Subject:From; b=DEsORivYZeE5/nuoS8rkh6rxx/4WkMVyhVDEz3J+LzxE7jFxmnlGpAZ773qEgmsks Pwsp/sH34ySuL0T9XmeybhjGZ4xZHvNSqT/OGH83aUibu6e9IyqoicX4cRQy84P0q7 cAOBnYvdyiJUyztw8AJ99fYscXXNgpEgC9UiT0/o= Date: Wed, 10 Nov 2021 01:45:28 -0800 From: marcmuel To: pgsql-jdbc@lists.postgresql.org Message-ID: Subject: [pgjdbc/pgjdbc] fb3151: fix: use local TimestampUtil in PgStatement and Pg... Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Approved: 58GruLoMopuc X-GitHub-Recipient-Address: pgsql-jdbc@lists.postgresql.org X-Auto-Response-Suppress: All List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Branch: refs/heads/master=0D Home: https://github.com/pgjdbc/pgjdbc=0D Commit: fb315187220ba85e231dcaefd7fadad2457c477e=0D https://github.com/pgjdbc/pgjdbc/commit/fb315187220ba85e231dcaefd7f= adad2457c477e=0D Author: marcmuel =0D Date: 2021-11-10 (Wed, 10 Nov 2021)=0D =0D Changed paths:=0D M pgjdbc/src/main/java/org/postgresql/jdbc/PgCallableStatement.java=0D= M pgjdbc/src/main/java/org/postgresql/jdbc/PgPreparedStatement.java=0D= M pgjdbc/src/main/java/org/postgresql/jdbc/PgResultSet.java=0D M pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java=0D =0D Log Message:=0D -----------=0D fix: use local TimestampUtil in PgStatement and PgResultset for thread = safety (#2291)=0D =0D * fix: use local TimestampUtil in PgStatement and PgResultset for thread=0D= safety=0D =0D TimestampUtil is not thread safe. It raises exceptions when multiple thre= ads use ResultSets of one connection. =0D If PgStatement and PgResultSet use their own TimestampUtil no synchronize= is needed.=0D =0D This belongs to Issue fix: synchronize modification of shared calendar (#= 921)=0D =0D Co-authored-by: Marcus M=C3=BCller =0D =0D =0D