!33 upgrade openEuler-22.03-LTS-Next python-sqlalchemy 1.4.31
From: @cherry530 Reviewed-by: @caodongxia Signed-off-by: @caodongxia
This commit is contained in:
commit
30e01d660b
28
0001-fix-none-type-judge.patch
Normal file
28
0001-fix-none-type-judge.patch
Normal file
@ -0,0 +1,28 @@
|
||||
From 55c30253b61fb3e1fbe6db4b2cb8a487ce908fe6 Mon Sep 17 00:00:00 2001
|
||||
From: baizg1107 <preloyalwhite@163.com>
|
||||
Date: Mon, 20 Jun 2022 11:52:47 +0800
|
||||
Subject: [PATCH] fix none type judge
|
||||
|
||||
---
|
||||
lib/sqlalchemy/engine/base.py | 5 +++--
|
||||
1 file changed, 3 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/lib/sqlalchemy/engine/base.py b/lib/sqlalchemy/engine/base.py
|
||||
index 0e695f6..fefc43b 100644
|
||||
--- a/lib/sqlalchemy/engine/base.py
|
||||
+++ b/lib/sqlalchemy/engine/base.py
|
||||
@@ -152,8 +152,9 @@ class Connection(Connectable):
|
||||
account current schema translate map.
|
||||
|
||||
"""
|
||||
-
|
||||
- name = obj.schema
|
||||
+ name = None
|
||||
+ if obj is not None:
|
||||
+ name = obj.schema
|
||||
schema_translate_map = self._execution_options.get(
|
||||
"schema_translate_map", None
|
||||
)
|
||||
--
|
||||
2.27.0
|
||||
|
||||
Binary file not shown.
BIN
SQLAlchemy-1.4.31.tar.gz
Normal file
BIN
SQLAlchemy-1.4.31.tar.gz
Normal file
Binary file not shown.
@ -1,14 +1,15 @@
|
||||
%global __provides_exclude_from ^(%{python3_sitearch})/.*\\.so$
|
||||
|
||||
Name: python-sqlalchemy
|
||||
Version: 1.3.24
|
||||
Version: 1.4.31
|
||||
Release: 1
|
||||
Summary: SQL toolkit and object relational mapper for Python
|
||||
License: MIT
|
||||
URL: http://www.sqlalchemy.org/
|
||||
Source0: https://files.pythonhosted.org/packages/c5/ab/81bef2f960abf3cdaf32fbf1994f0c6f5e6a5f1667b5713ed6ebf162b6a2/SQLAlchemy-1.3.24.tar.gz
|
||||
|
||||
BuildRequires: python3-devel python3-setuptools python3-pytest gcc
|
||||
Source0: https://files.pythonhosted.org/packages/0f/80/d8883f12689a55e333d221bb9a56c727e976f5a8e9dc862efeac9f40d296/SQLAlchemy-1.4.31.tar.gz
|
||||
Patch0: 0001-fix-none-type-judge.patch
|
||||
BuildRequires: python3-devel python3-setuptools python3-pytest gcc python3-greenlet
|
||||
Requires: python3-greenlet
|
||||
|
||||
%description
|
||||
SQLAlchemy is an Object Relational Mapper (ORM) that provides a flexible,
|
||||
@ -62,6 +63,9 @@ PYTHONPATH=. %{__python3} -m pytest test
|
||||
%doc doc examples
|
||||
|
||||
%changelog
|
||||
* Thu Oct 27 2022 xu_ping <xuping33@h-partners.com> - 1.4.31-1
|
||||
- update to 1.4.31
|
||||
|
||||
* Wed Dec 22 2021 guozhaorui <guozhaorui1@huawei.com> - 1.3.24-1
|
||||
- update to 1.3.24
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user