From d6c1c4b5886e1355cb2e548b9d7a56a5d9d6198c Mon Sep 17 00:00:00 2001 From: "qian.yao" Date: Mon, 15 Apr 2024 14:43:21 +0800 Subject: [PATCH] feat(psycopg2): add 5.0.0.4 release note --- .../12-psycopg2-release-notes.md | 11 ++++++++++- .../12-psycopg2-release-notes.md | 9 +++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/product/en/docs-mogdb/v5.0/developer-guide/dev/4.1-psycopg-based-development/12-psycopg2-release-notes.md b/product/en/docs-mogdb/v5.0/developer-guide/dev/4.1-psycopg-based-development/12-psycopg2-release-notes.md index 1ad73741..9e908ea4 100644 --- a/product/en/docs-mogdb/v5.0/developer-guide/dev/4.1-psycopg-based-development/12-psycopg2-release-notes.md +++ b/product/en/docs-mogdb/v5.0/developer-guide/dev/4.1-psycopg-based-development/12-psycopg2-release-notes.md @@ -9,9 +9,18 @@ date: 2023-12-18 The MogDB Psycopg2 release notes contains new features, improvements, BUG fixes, and other change descriptions. Please read the details below carefully to understand all changes. +## 5.0.0.4 (2024-04-15) + +**Fix:** + +- Fix the autosavepoint not work when the server parameter compat_oracle_txn_control is set + +> While establishing a connection, you can enable compat_oracle_txn_control by options parameter: +> `conn = psycopg2.connect(..., options="-c behavior_compat_options=compat_oracle_txn_control")` + ## 5.0.0.3 (2024.03.28) -**特性:** +**Features:** - Added oracle transaction compatibility (Active When the guc parameter `behavior_compat_options` contains `compat_oracle_txn_control`) diff --git a/product/zh/docs-mogdb/v5.0/developer-guide/dev/4.1-psycopg-based-development/12-psycopg2-release-notes.md b/product/zh/docs-mogdb/v5.0/developer-guide/dev/4.1-psycopg-based-development/12-psycopg2-release-notes.md index cfead922..9869f69c 100644 --- a/product/zh/docs-mogdb/v5.0/developer-guide/dev/4.1-psycopg-based-development/12-psycopg2-release-notes.md +++ b/product/zh/docs-mogdb/v5.0/developer-guide/dev/4.1-psycopg-based-development/12-psycopg2-release-notes.md @@ -9,6 +9,15 @@ date: 2023-12-18 MogDB Psycopg2 发布记录主要包含了新功能、改进、BUG修复和其他变更说明信息。请仔细阅读下面的详细信息,以了解所有变更内容。 +## 5.0.0.4 (2024-04-15) + +**修复:** + +- 修复服务端开启 compat_oracle_txn_control 参数后,autosavepoint 失效的问题 + +> 建立连接时,可通过 options 参数开启 compat_oracle_txn_control 特性: +> `conn = psycopg2.connect(..., options="-c behavior_compat_options=compat_oracle_txn_control")` + ## 5.0.0.3 (2024.03.28) **特性:** -- Gitee