Deprecations¶
The following tables contains all of the deprecations in the cx_Oracle API, when they were first deprecated and a comment on what should be used instead, if applicable. The most recent deprecations are listed first.
Name |
Comments |
---|---|
encoding parameter to |
No longer needed as the use of encodings other than UTF-8 is deprecated. Encoding is handled internally between cx_Oracle and Oracle Database. |
nencoding parameter to |
No longer needed as the use of encodings other than UTF-8 is deprecated. |
encoding parameter to |
No longer needed as the use of encodings other than UTF-8 is deprecated. |
nencoding parameter to |
No longer needed as the use of encodings other than UTF-8 is deprecated. |
Connection.maxBytesPerCharacter |
No longer needed as the use of encodings other than UTF-8 is deprecated. The constant value 4 can be used instead. |
Positional parameters to |
Replace with keyword parameters in order to comply with the Python database API. |
Positional parameters to |
Replace with keyword parameters in order to comply with the Python database API. |
threaded parameter to |
The value of this parameter is ignored. Threading is now always used. |
waitTimeout parameter to |
Replace with parameter name wait_timeout |
maxLifetimeSession parameter to |
Replace with parameter name max_lifetime_session |
sessionCallback parameter to |
Replace with parameter name session_callback |
maxSessionsPerShard parameter to |
Replace with parameter name max_sessions_per_shard |
SessionPool.tnsentry |
Replace with |
payloadType parameter to |
Replace with parameter name payload_type if using keyword parameters. |
ipAddress parameter to |
Replace with parameter name ip_address |
groupingClass parameter to |
Replace with parameter name grouping_class |
groupingValue parameter to |
Replace with parameter name grouping_value |
groupingType parameter to |
Replace with parameter name grouping_type |
clientInitiated parameter to |
Replace with parameter name client_initiated |
Connection.callTimeout |
Replace with |
Connection.tnsentry |
Replace with |
keywordParameters parameter to |
Replace with parameter name keyword_parameters |
keywordParameters parameter to |
Replace with parameter name keyword_parameters |
encodingErrors parameter to |
Replace with parameter name encoding_errors |
Cursor.fetchraw() |
Replace with |
newSize parameter to |
Replace with parameter name new_size |
Queue.deqMany |
Replace with |
Queue.deqOne |
Replace with |
Queue.enqMany |
Replace with |
Queue.enqOne |
Replace with |
Queue.deqOptions |
Replace with |
Queue.enqOptions |
Replace with |
Queue.payloadType |
Replace with |
Subscription.ipAddress |
Replace with |
Message.consumerName |
Replace with |
Message.queueName |
Replace with |
Variable.actualElements |
Replace with |
Variable.bufferSize |
Replace with |
Variable.numElements |
Replace with |
Name |
Comments |
---|---|
cx_Oracle.BFILE |
Replace with |
cx_Oracle.BLOB |
Replace with |
cx_Oracle.BOOLEAN |
Replace with |
cx_Oracle.CLOB |
Replace with |
cx_Oracle.CURSOR |
Replace with |
cx_Oracle.FIXED_CHAR |
Replace with |
cx_Oracle.FIXED_NCHAR |
Replace with |
cx_Oracle.INTERVAL |
Replace with |
cx_Oracle.LONG_BINARY |
Replace with |
cx_Oracle.LONG_STRING |
Replace with |
cx_Oracle.NATIVE_FLOAT |
Replace with |
cx_Oracle.NATIVE_INT |
Replace with |
cx_Oracle.NCHAR |
Replace with |
cx_Oracle.NCLOB |
Replace with |
cx_Oracle.OBJECT |
Replace with |
cx_Oracle.TIMESTAMP |
Replace with |
Name |
Comments |
---|---|
Connection.deq() |
Replace with |
Connection.deqoptions() |
Replace with attribute |
Connection.enq() |
Replace with |
Connection.enqoptions() |
Replace with attribute |
Name |
Comments |
---|---|
Cursor.executemanyprepared() |
Replace with |