Skip to content

Commit 8394bd4

Browse files
Fixed bug when SQL is executed after first being parsed with Oracle
Database 23c.
1 parent 4495374 commit 8394bd4

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

doc/src/release_notes.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,16 @@ python-oracledb Release Notes
77

88
For deprecations, see :ref:`Deprecations <deprecations>`.
99

10+
oracledb 1.3.1 (TBD)
11+
--------------------
12+
13+
Thin Mode Changes
14+
+++++++++++++++++
15+
16+
#) Fixed bug when SQL is executed after first being parsed with Oracle
17+
Database 23c.
18+
19+
1020
oracledb 1.3.0 (March 2023)
1121
---------------------------
1222

src/oracledb/impl/thin/messages.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1852,9 +1852,9 @@ cdef class ExecuteMessage(MessageWithData):
18521852
self.cursor_impl._fetch_array_size = num_iters
18531853
else:
18541854
num_iters = self.cursor_impl._fetch_array_size
1855-
if not stmt._is_plsql:
1855+
if not stmt._is_plsql and not self.parse_only:
18561856
options |= TNS_EXEC_OPTION_NOT_PLSQL
1857-
elif num_params > 0:
1857+
elif stmt._is_plsql and num_params > 0:
18581858
options |= TNS_EXEC_OPTION_PLSQL_BIND
18591859
if num_params > 0:
18601860
options |= TNS_EXEC_OPTION_BIND

0 commit comments

Comments
 (0)