Skip to content

Commit 744fce4

Browse files
authored
BugFix: Fixed decorator usage in cx_oracle.py for constraint data retrieval. (#36)
1 parent bf2cefc commit 744fce4

File tree

3 files changed

+311
-13
lines changed

3 files changed

+311
-13
lines changed

.gitignore

Lines changed: 309 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,309 @@
1-
git-pre-push-hook-ban.log
2-
.github/.DS_Store
3-
.github/workflows/.DS_Store
4-
.idea/.gitignore
5-
.idea/ecology-plugins.iml
6-
.idea/MarsCodeWorkspaceAppSettings.xml
7-
.idea/misc.xml
8-
.idea/modules.xml
9-
.idea/vcs.xml
10-
.idea/inspectionProfiles/profiles_settings.xml
11-
.idea/inspectionProfiles/Project_Default.xml
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
share/python-wheels/
24+
*.egg-info/
25+
.installed.cfg
26+
*.egg
27+
MANIFEST
28+
29+
# PyInstaller
30+
# Usually these files are written by a python script from a template
31+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
32+
*.manifest
33+
*.spec
34+
35+
# Installer logs
36+
pip-log.txt
37+
pip-delete-this-directory.txt
38+
39+
# Unit test / coverage reports
40+
htmlcov/
41+
.tox/
42+
.nox/
43+
.coverage
44+
.coverage.*
45+
.cache
46+
nosetests.xml
47+
coverage.xml
48+
*.cover
49+
*.py,cover
50+
.hypothesis/
51+
.pytest_cache/
52+
cover/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
.pybuilder/
76+
target/
77+
78+
# Jupyter Notebook
79+
.ipynb_checkpoints
80+
81+
# IPython
82+
profile_default/
83+
ipython_config.py
84+
85+
# pyenv
86+
# For a library or package, you might want to ignore these files since the code is
87+
# intended to run in multiple environments; otherwise, check them in:
88+
# .python-version
89+
90+
# pipenv
91+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
92+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
93+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
94+
# install all needed dependencies.
95+
#Pipfile.lock
96+
97+
# poetry
98+
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control.
99+
# This is especially recommended for binary packages to ensure reproducibility, and is more
100+
# commonly ignored for libraries.
101+
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control
102+
#poetry.lock
103+
104+
# pdm
105+
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control.
106+
#pdm.lock
107+
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it
108+
# in version control.
109+
# https://pdm.fming.dev/#use-with-ide
110+
.pdm.toml
111+
112+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm
113+
__pypackages__/
114+
115+
# Celery stuff
116+
celerybeat-schedule
117+
celerybeat.pid
118+
119+
# SageMath parsed files
120+
*.sage.py
121+
122+
# Environments
123+
.env
124+
.venv
125+
env/
126+
venv/
127+
ENV/
128+
env.bak/
129+
venv.bak/
130+
131+
# Spyder project settings
132+
.spyderproject
133+
.spyproject
134+
135+
# Rope project settings
136+
.ropeproject
137+
138+
# mkdocs documentation
139+
/site
140+
141+
# mypy
142+
.mypy_cache/
143+
.dmypy.json
144+
dmypy.json
145+
146+
# Pyre type checker
147+
.pyre/
148+
149+
# pytype static type analyzer
150+
.pytype/
151+
152+
# Cython debug symbols
153+
cython_debug/
154+
155+
# PyCharm
156+
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can
157+
# be added to the global gitignore or merged into this project gitignore. For a PyCharm
158+
# project, it is recommended to include the following files in version control:
159+
# - .idea/modules.xml
160+
# - .idea/*.iml
161+
# - .idea/misc.xml
162+
# - .idea/vcs.xml
163+
# - .idea/workspace.xml
164+
# - .idea/tasks.xml
165+
# - .idea/usage.statistics.xml
166+
# - .idea/shelf.xml
167+
# - .idea/runConfigurations.xml
168+
# - .idea/compiler.xml
169+
# - .idea/libraries/
170+
# - .idea/jarRepositories.xml
171+
# - .idea/artifacts/
172+
# - .idea/shelf/
173+
# - .idea/workspace.xml
174+
# - .idea/tasks.xml
175+
# - .idea/usage.statistics.xml
176+
# - .idea/shelf.xml
177+
# - .idea/runConfigurations.xml
178+
# - .idea/compiler.xml
179+
# - .idea/libraries/
180+
# - .idea/jarRepositories.xml
181+
# - .idea/artifacts/
182+
# - .idea/shelf/
183+
.idea/
184+
185+
# VS Code
186+
.vscode/
187+
188+
# Sublime Text
189+
*.sublime-project
190+
*.sublime-workspace
191+
192+
# Vim
193+
*.swp
194+
*.swo
195+
*~
196+
197+
# Emacs
198+
*~
199+
\#*\#
200+
/.emacs.desktop
201+
/.emacs.desktop.lock
202+
*.elc
203+
auto-save-list
204+
tramp
205+
.\#*
206+
207+
# macOS
208+
.DS_Store
209+
.AppleDouble
210+
.LSOverride
211+
212+
# Icon must end with two \r
213+
Icon
214+
215+
# Thumbnails
216+
._*
217+
218+
# Files that might appear in the root of a volume
219+
.DocumentRevisions-V100
220+
.fseventsd
221+
.Spotlight-V100
222+
.TemporaryItems
223+
.Trashes
224+
.VolumeIcon.icns
225+
.com.apple.timemachine.donotpresent
226+
227+
# Directories potentially created on remote AFP share
228+
.AppleDB
229+
.AppleDesktop
230+
Network Trash Folder
231+
Temporary Items
232+
.apdisk
233+
234+
# Windows
235+
Thumbs.db
236+
Thumbs.db:encryptable
237+
ehthumbs.db
238+
ehthumbs_vista.db
239+
240+
# Dump file
241+
*.stackdump
242+
243+
# Folder config file
244+
[Dd]esktop.ini
245+
246+
# Recycle Bin used on file shares
247+
$RECYCLE.BIN/
248+
249+
# Windows Installer files
250+
*.cab
251+
*.msi
252+
*.msix
253+
*.msm
254+
*.msp
255+
256+
# Windows shortcuts
257+
*.lnk
258+
259+
# Linux
260+
*~
261+
262+
# temporary files which can be created if a process still has a handle open of a deleted file
263+
.fuse_hidden*
264+
265+
# KDE directory preferences
266+
.directory
267+
268+
# Linux trash folder which might appear on any partition or disk
269+
.Trash-*
270+
271+
# .nfs files are created when an open file is removed but is still being accessed
272+
.nfs*
273+
274+
# Project specific
275+
# SQLite test database
276+
*.db
277+
*.sqlite
278+
*.sqlite3
279+
280+
# Test profiles and temporary files
281+
test/profiles.txt
282+
*.tmp
283+
*.temp
284+
285+
# Log files
286+
*.log
287+
288+
# Environment variables
289+
.env.local
290+
.env.development
291+
.env.test
292+
.env.production
293+
294+
# Coverage reports
295+
.coverage
296+
htmlcov/
297+
298+
# Performance profiling
299+
*.prof
300+
*.profile
301+
302+
# Backup files
303+
*.bak
304+
*.backup
305+
*.old
306+
307+
# Temporary test files
308+
test_*.tmp
309+
temp_*

oceanbase-sqlalchemy-plugin/oceanbase_sqlalchemy/cx_oracle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ def initialize(self, connection):
8686
# OceanBase fully supports Unicode and should not use bytes encoding
8787
self.supports_unicode_binds = True
8888

89-
@reflection.cache()
89+
@reflection.cache
9090
def _get_constraint_data(
9191
self, connection, table_name, schema=None, dblink="", **kw
9292
):

oceanbase-sqlalchemy-plugin/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name="oceanbase-sqlalchemy",
8-
version="0.5.0",
8+
version="0.5.1",
99
description="SQLAlchemy dialect for OceanBase Oracle mode (supports SQLAlchemy 1.3.x and 2.0+)",
1010
long_description=open("README.md", "r", encoding="utf-8").read(),
1111
long_description_content_type="text/markdown",

0 commit comments

Comments
 (0)