Skip to content

Commit 3c6e4be

Browse files
Fix typo in error name and rename for consistency.
1 parent 1a92bef commit 3c6e4be

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/oracledb/errors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ def _raise_err(
312312
ERR_UNEXPECTED_END_OF_DATA = 5006
313313
ERR_UNEXPECTED_XML_TYPE = 5007
314314
ERR_TOO_MANY_CURSORS_TO_CLOSE = 5008
315-
ERR_UNKOWN_SERVER_SIDE_PIGGYBACK = 5009
315+
ERR_UNKNOWN_SERVER_PIGGYBACK = 5009
316316

317317
# error numbers that result in OperationalError
318318
ERR_LISTENER_REFUSED_CONNECTION = 6000
@@ -684,7 +684,7 @@ def _raise_err(
684684
"format was returned"
685685
),
686686
ERR_UNEXPECTED_XML_TYPE: "unexpected XMLType with flag {flag}",
687-
ERR_UNKOWN_SERVER_SIDE_PIGGYBACK: (
687+
ERR_UNKNOWN_SERVER_PIGGYBACK: (
688688
"internal error: unknown server side piggyback opcode {opcode}"
689689
),
690690
ERR_UNSUPPORTED_INBAND_NOTIFICATION: (

src/oracledb/impl/thin/messages.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ cdef class Message:
264264
buf.skip_ub4() # session id
265265
buf.skip_ub2() # serial number
266266
else:
267-
errors._raise_err(errors.ERR_UNKOWN_SERVER_SIDE_PIGGYBACK,
267+
errors._raise_err(errors.ERR_UNKNOWN_SERVER_PIGGYBACK,
268268
opcode=opcode)
269269

270270
cdef int _process_warning_info(self, ReadBuffer buf) except -1:

0 commit comments

Comments
 (0)