Commit Graph

16 Commits

Author SHA1 Message Date
fee7f30f42 Added new connection property: tls_peer_cert_info
connection.tls_peer_cert_info returns information about
the peer certificate or None if the connection doesn't
use TLS/SSL.
2024-09-27 16:21:35 +02:00
5ce5ca3d15 CONPY-244:
Check that the version of loaded MariaDB Connector/C library is
not less than the version used to build MariaDB Connector/Python.
2023-01-16 14:32:57 +01:00
03b72c6644 Fix for CONPY-240:
Don't overwrite errormessage/stacktrace if an exception was generated
during module initialization.
2022-12-01 06:00:17 +01:00
952a8cfb35 Fix for CONPY-240
If an error occured during module initialization, the exception
now contains more information about possible cause and doesn't
overwrite existing error message.
2022-11-28 06:10:07 +01:00
d2f9780965 typos 2022-06-22 16:22:27 -05:00
9b8a32dad6 Build fixes:
This patch includes fixes for building with Python 3.11 (see
CONPY-201):

- PyType assignments replaced by Py_SET_TYPE
- removed orphaned doc strings
2022-05-10 09:06:56 +02:00
27730cd018 Moved more methods and propertys from C to Python code 2021-03-21 22:44:42 +01:00
aa65cc853a Exchanged C written connection pool class by native python class. 2021-01-18 06:11:03 +01:00
feb990db4e Moved DBAPI 2.0 Date/Time/Timestamp constructors from C code to Python module dpapi20.py 2020-12-01 20:59:27 +01:00
a2b3e98104 Replaced Mrdb_Fieldinfo by python fieldinfo class 2020-12-01 08:28:01 +01:00
7df428ecf8 Moved Objects from c to python code
Indicator, BINARY, NUMBER, STRING and DATE objects were moved
to python code
2020-11-30 16:49:16 +01:00
6a832099b1 Fixed base class for exceptions 2020-11-24 14:00:15 +01:00
846c0d0fdb Fix for CONPY-119: Fixed memory leak
When creating a cursor with result set type named_tuple
or dictionary, references were not decremented correctly.

For named tuples we don't use a static variable anymore, instead
of it will be created by PyStructSequence_NewType.
2020-10-03 16:41:29 +02:00
709ac83799 Fixed compiler warnings 2020-09-19 14:05:53 +02:00
bd560c2bb9 Fix for CONPY-108 (memory leak):
- initialize datetime API only once per object file
- don't reparse same statement
2020-08-29 12:20:52 +02:00
29b05e3b09 Various fixes and changes for SQLAlchemy support:
- added a thin python wrapper around mariadb module
- added constansts under mariadb.constants (CLIENT, CURSOR, INDICATOR)
- bench and test are now in testing subdirectory
- updated documentation
2020-07-24 12:13:31 +02:00