Commit Graph

8 Commits

Author SHA1 Message Date
f57e2223bc Windows build fix 2022-04-12 04:19:44 +02:00
ebbfea0abe Fix for CONPY-198:
Use CLOCK_MONOTONIC instead of CLOCK_MONOTOIC_RAW constant. The latter
one exists for Linux only.
2022-04-05 18:50:29 +02:00
e9032ede8e CONPY-184
Display status of connection, cursor and pool class in
string representation.

If an object (cursor, class, connection pool) was closed, the
string representation (tp_repr) now shows the status of the object.

Example:

>>> import mariadb
>>> connection=mariadb.connect()
>>> connection
<mariadb.connection connected to 'localhost' at 0x7f94d77c3b40>
>>> connection.close()
>>> connection
<mariadb.connection (closed) at 0x7f94d77c3b40>
2021-12-12 08:19:35 +01:00
fdee5137d5 Fix for CONPY-144: Segfault in connection pool
Due to wrong reference count connection was closed by gc, after
obtaining the same connection from ConnectionPool operations ended
into a seg fault.
Additionally 2 smaller memleaks were fixed.
2021-03-10 07:46:07 +01:00
0f0468a085 Fix for CONC-132: Fix leak in connection pool
When closing a connection pool the allocated buffer for pool_name
was not freed in a proper way.
2020-11-23 15:15:13 +01:00
fab2a6d810 Fixed bug in pooling:
Due to missing reference count incrementation the default configuration
was removed/overwritten.
2020-11-22 20:38:26 +01:00
e3eba3abaf Added method pool.close() 2020-08-05 19:01:53 +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