Skip to content

Commit 094a145

Browse files
Code optimisation: only scan DML statements for the returning clause.
1 parent b9891f0 commit 094a145

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oracledb/impl/thin/statement.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ cdef class Statement:
214214
# bind variables can only be found in queries, DML and PL/SQL
215215
if self._is_query or self._is_dml or self._is_plsql:
216216
input_sql = sql
217-
if not self._is_plsql:
217+
if self._is_dml:
218218
match = re.search(DML_RETURNING_PATTERN, sql)
219219
if match is not None:
220220
pos = match.end()

0 commit comments

Comments
 (0)