Skip to content

Commit 92ac5a6

Browse files
Use operator |= for safety in all cases.
1 parent 802468c commit 92ac5a6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/oracledb/impl/thin/messages/execute.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ cdef class ExecuteMessage(MessageWithData):
5151
if stmt._requires_define:
5252
options |= TNS_EXEC_OPTION_DEFINE
5353
elif not self.parse_only and stmt._sql is not None:
54-
exec_flags = TNS_EXEC_FLAGS_IMPLICIT_RESULTSET
54+
exec_flags |= TNS_EXEC_FLAGS_IMPLICIT_RESULTSET
5555
options |= TNS_EXEC_OPTION_EXECUTE
5656
if stmt._cursor_id == 0 or stmt._is_ddl:
5757
options |= TNS_EXEC_OPTION_PARSE
@@ -75,7 +75,7 @@ cdef class ExecuteMessage(MessageWithData):
7575
if self.batcherrors:
7676
options |= TNS_EXEC_OPTION_BATCH_ERRORS
7777
if self.arraydmlrowcounts:
78-
exec_flags = TNS_EXEC_FLAGS_DML_ROWCOUNTS
78+
exec_flags |= TNS_EXEC_FLAGS_DML_ROWCOUNTS
7979
if self.conn_impl.autocommit and not self.parse_only:
8080
options |= TNS_EXEC_OPTION_COMMIT
8181

0 commit comments

Comments
 (0)