208 Commits

Author SHA1 Message Date
Anthony Tuininga
438c885c20 Correct calculation of MessageProperties.msgid. 2021-09-03 10:56:24 -06:00
Anthony Tuininga
cc067bf83e Binary integer variables now explicitly convert values to integers (since
implicit conversion to integer has become an error in Python 3.10) and
values that are not `int`, `float` or `decimal.Decimal` are explicitly
rejected.
2021-06-08 11:15:13 -06:00
Anthony Tuininga
d585cf06df Fixed crash when using the deprecated parameter name keywordParameters
with Cursor.callproc(); add test cases to cover this and other similar
situations.
2021-05-21 21:38:45 -06:00
Anthony Tuininga
ce4713c6f7 Fix typo. 2021-05-21 21:36:58 -06:00
Anthony Tuininga
cfa2750854 Add support for pool reconfiguration. 2021-05-18 16:56:04 -06:00
Anthony Tuininga
07bb84e1b6 Remove duplicate forward declaration section. 2021-05-18 16:54:33 -06:00
Anthony Tuininga
5680620f02 Add support for specifying the ping interval for pools. 2021-04-28 15:30:44 -06:00
Anthony Tuininga
8c99d1ddde Final work on adjusting attribute, method and parameter names to be
consistent and to comply with PEP 8 naming guidelines.
2021-04-23 16:08:25 -06:00
Anthony Tuininga
96f938286d Further work on adjusting attribute, method and parameter names to be
consistent and to comply with PEP 8 naming guidelines; also adjust
implementation of #385 (originally done in pull request #549) to use the
parameter name `bypass_decode` instead of `bypassencoding`.
2021-04-23 16:05:42 -06:00
Anthony Tuininga
fa36066875 Added support for enabling the SODA metadata cache in Oracle Client
version 21.3 and higher (also available in Oracle Client 19 from 19.11).
This significantly improves the performance of
SodaDatabase.createCollection() and SodaDatabase.openCollection().
2021-04-23 14:18:46 -06:00
Anthony Tuininga
ba6e054a24 Further work on adjusting attribute, method and parameter names to be
consistent and to comply with PEP 8 naming guidelines.
2021-04-23 13:54:00 -06:00
Anthony Tuininga
cccfa322c7 Simplify code to take advantage of feature added in Python 3.3. 2021-04-23 13:48:53 -06:00
Anthony Tuininga
7ad13e73d3 Added parameter stmtcachesize to cx_Oracle.connect() and
cx_Oracle.SessionPool() in order to facilitate specifying the initial
size of the statement cache.
2021-04-23 13:45:59 -06:00
Anthony Tuininga
df89702a4e Stop passing unsupported flags to dpiSodaDocCursor_getNext(). 2021-04-23 13:41:48 -06:00
Anthony Tuininga
c527c06650 Further work on adjusting attribute, method and parameter names to be
consistent and to comply with PEP 8 naming guidelines; add a separate
section to the documentation to deal with all deprecations so that they
are all in one place.
2021-04-23 13:40:24 -06:00
Anthony Tuininga
5e2a363ac5 Modify the parameter names of the SessionPool constructor in order to
follow PEP 8 naming guidelines.
2021-04-23 12:01:52 -06:00
Anthony Tuininga
4264d7bc5d Improved test suite; added check that the LOB type matches the expected
LOB type.
2021-04-23 11:53:13 -06:00
Draco94
95baec2436
Implemented #385 enhancement and updated documentation (#549)
* Implemented #385 enhancement and updated documentation

Signed-off-by: Darko Djolovic <ddjolovic@outlook.com>

* Created flag to Cursor.var()

Signed-off-by: Darko Djolovic <ddjolovic@outlook.com>

* Removed first commit changes, updated documetnation

Signed-off-by: Darko Djolovic <ddjolovic@outlook.com>

* Added testing sample 'QueringRawData.py' and renamed attribute 'bypassstringencoding' to 'bypassencoding' with updated documentation

Signed-off-by: Darko Djolovic <ddjolovic@outlook.com>
2021-04-23 11:38:45 -06:00
Anthony Tuininga
517868eaf9 Added support for supplying hints to various SODA operations. 2021-04-15 16:59:34 -06:00
Anthony Tuininga
0ff1003203 Eliminated memory leak when calling SodaOperation.filter() with a dictionary. 2021-01-21 19:53:29 -07:00
Anthony Tuininga
b199c5d57f Fix typos. 2020-12-21 15:01:01 -07:00
Anthony Tuininga
b59fe3b0be Added support for new JSON data type available in Oracle Client and Database 21
and higher.
2020-12-08 11:40:21 -07:00
Anthony Tuininga
216bc42cf4 Eliminate use of deprecated function (which generates a warning in Python 3.9). 2020-11-12 14:28:17 -07:00
Anthony Tuininga
7e7133b09a The value of prefetchrows for REF CURSOR variables is now honored
(https://github.com/oracle/python-cx_Oracle/issues/482).
2020-11-12 14:24:42 -07:00
Anthony Tuininga
ef3d84318e The ability to pickle/unpickle Database and API types has been restored. 2020-11-02 15:24:23 -07:00
Anthony Tuininga
0d28ea1e42 Added internal methods for getting/setting OCI attributes that are otherwise
not supported by cx_Oracle. These methods should only be used as directed by
Oracle.
2020-09-03 16:35:05 -06:00
Alex Henrie
f338af9d1c
Make numConnectDataArgs const (#472)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2020-08-26 15:35:29 -06:00
Anthony Tuininga
f3610cd2b9 Fix function header comments. 2020-07-28 09:52:47 -06:00
Anthony Tuininga
96f15f48da Move declaration of Python types, methods and members to the end of the file in
order to avoid unnecessary forward declarations.
2020-07-28 09:50:41 -06:00
Anthony Tuininga
f8bcc6f0ec Added attribute cursor.prefetchrows to control the number of rows that the
Oracle Client library fetches into internal buffers when a query is
executed (https://github.com/oracle/python-cx_Oracle/issues/355).
2020-06-12 15:57:29 -06:00
Anthony Tuininga
5df9a73c5d Add cx_Oracle.init_oracle_client() for Oracle Client library initialization;
change default encoding to UTF-8.
2020-06-03 09:13:06 -06:00
Anthony Tuininga
4646a18165 Remove unneeded code (and a deprecation warning with Python 3.9b1). 2020-05-19 11:42:46 -06:00
Anthony Tuininga
4b6b2c0dcc Return error if one occurs! 2020-05-18 16:38:44 -06:00
Anthony Tuininga
633371db7d Small tweak to pull request for consistency in naming; update release notes
(https://github.com/oracle/python-cx_Oracle/pull/438).
2020-05-18 14:29:21 -06:00
Alex Henrie
5c6f55ef4d
Save string length instead of calling strlen in cxoCursor_var (#438)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2020-05-18 14:26:35 -06:00
Anthony Tuininga
856d0aab76 Tweaks to boolean variable improvements patch supplied by Alex Henrie
(https://github.com/oracle/python-cx_Oracle/pull/435).
2020-05-15 21:47:40 -06:00
Alex Henrie
17fd92f8f6
Convert Python objects to booleans based on their Python truth value (#435)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2020-05-15 17:00:13 -06:00
Alex Henrie
bd9d7759b2
Remove redundant decrement and return from cxoTransform_toPython (#423)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2020-04-20 10:19:08 -06:00
Alex Henrie
af1281e535
Remove redundant assignment from cxoCursor_setBindVariables (#421)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2020-04-18 21:39:39 -06:00
Alex Henrie
528dec6859
Fix memory leak on error path in cxoObjectType_initialize (#422)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2020-04-18 21:38:31 -06:00
Alex Henrie
ca363bed8f
Use return value of snprintf instead of calling strlen unnecessarily (#420)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2020-04-18 16:55:29 -06:00
Alex Henrie
5ad2408a11
Consolidate string handling in cxoTransform_toPython (#419)
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
2020-04-17 09:57:26 -06:00
Anthony Tuininga
c3561f3595 Eliminate treating BLOB and BFILE as BINARY and CLOB and NCLOB as STRING as
they return an object which does not behave the same way as strings and bytes
(https://github.com/oracle/python-cx_Oracle/issues/415).
2020-04-13 09:21:57 -06:00
Anthony Tuininga
8a301721fb Ensure that the new DbType objects are hashable
(https://github.com/oracle/python-cx_Oracle/issues/401).
2020-02-21 15:39:32 -07:00
Anthony Tuininga
4ffbc9cac8 Added support for specifying the fetch array size when fetching documents from
a SODA collection -- available in Oracle Client 19.5 and higher.
2020-02-14 10:33:07 -07:00
Anthony Tuininga
9beb4aa907 Added support for SODA collection truncate, available in Oracle Client 20 and
higher.
2020-02-14 10:31:08 -07:00
Anthony Tuininga
44be257534 Add support for saving SODA documents into a collection, available in Oracle
Client 20 and higher.
2020-02-14 10:29:07 -07:00
Anthony Tuininga
f7b7785e82 Reworked type management to clarify and simplify code (see release notes for
details).
2020-02-10 10:02:03 -07:00
Anthony Tuininga
08346005a7 Use named field structure initialization in order to clarify code and reduce
clutter.
2020-02-10 09:57:30 -07:00
Anthony Tuininga
809ead0b9c Added support for starting up a database using a parameter file (PFILE), as
requested (https://github.com/oracle/python-cx_Oracle/issues/295).
2019-12-04 15:07:38 -07:00