All versions
Select version:
Georg Richter committed 2025-06-222025-06-22 05:39
CONPY-313: Check float types "inf", "-inf" and "nan"

If a parameter of type float (or decimal) has the value
"nan", "inf", "Nan", "Infinity" we raise a NotSupported
exception.
  mariadb-corporation/mariadb-connector-python
7b015f25e6edd3228acd27752b95e7c77ef2f72e GitHub
+60
-
-
Georg Richter committed 2025-02-242025-02-24 10:58
CONPY-306: Fix crash when getting invalid unicode

This fixes a possible crash when obtaining invalid unicode
characters from MariaDB server.
  mariadb-corporation/mariadb-connector-python
07238030a34868dc194439ca66f87e4d1aa35da4 GitHub
+46
±10
-
Georg Richter committed 2025-02-202025-02-20 18:53
CONPY-296: Include test suite in sdist

Fixed manifest, which contained wrong directory (tests instead
of testing - excluded benchmark stuff)
  mariadb-corporation/mariadb-connector-python
11a22ad7e74ab8cf6862f6af6ebae620326986a7 GitHub
Georg Richter committed 2025-02-132025-02-13 10:47
CONPY-302: fix segfault with threaded

Callback functions for session or fetch callbacks didn't work properly
when passing connection->thread_state in threaded environment.
Instead we acquire and release the GIL explicitly in these callback
functions.
  mariadb-corporation/mariadb-connector-python
f0bbd0882a8d15e13712c828364bd8be87fce8d1 GitHub
+15
±38
-40
Georg Richter committed 2025-02-102025-02-10 12:59
Follow up for CONPY-299

- Added byteswap function for vector (bigendian)
- Use buffer protocol instead of calling array's
  methods
  mariadb-corporation/mariadb-connector-python
befe7000c9d1ce6b72932f06a9b057ed5fb6665e GitHub
+100
±83
-1
Georg Richter committed 2025-01-302025-01-30 08:20
CONPY-295: Fix unsigned check

Fixed check for signed/unsigned integers when sending parameters
via executemany().
  mariadb-corporation/mariadb-connector-python
7cfc325feb0d6e8fa7708f83e5c8e6bd27c14e57 GitHub
+12
±2
-
Georg Richter committed 2025-01-302025-01-30 08:02
CONPY-299: support for VECTOR data type

Implemented support for VECTOR paramter. Beside text representation
(Vec_FromText) or array to byte conversion (array.tobytes) it is now
possible to specify an float array as parameter.

Example:

import mariadb, array

...

sql = """
  CREATE OR REPLACE TABLE test(
     id INT PRIMARY KEY,
     v VECTOR(3) NOT NULL,
      VECTOR INDEX (v))")"""

cursor.execute(sql)

vector= array.array('f', [123.1, 230.9, 981.7])

cursor.execute("INSERT INTO test VALUES (?,?)", (1, vector))

Please note that the opposite way, retrieving a float array is not
supported yet. This will require either a new or extended field
type for vector data type.
  mariadb-corporation/mariadb-connector-python
138a02238e2bd33b5002e89f746209ffb9ddeebf GitHub
+89
±2
-
Georg Richter committed 2025-01-292025-01-29 08:43
CONPY-300: Fix documentation

kwargs parameter were missing in ConnectionPool documentation.
  mariadb-corporation/mariadb-connector-python
abd17eb95d8445dcc1977a03016bca02d996570e GitHub
Georg Richter committed 2025-01-282025-01-28 15:16
CONPY-303: Documentation fix for cursor constructor

Fixed documentation for cursor constructor.
Thanks to Witold Czarnecki for the bug report.
  mariadb-corporation/mariadb-connector-python
e86261c12132339519285e0b058ad31fd6539ea8 GitHub
Georg Richter committed 2024-09-272024-09-27 15:14
CONPY-289: BIGINT out of range on bulk insert

If a bigint value is > LONGLONG_MAX it must be
indicated that it is an unsigned value
(param->is_unsigned= 1).
  mariadb-corporation/mariadb-connector-python
5ae028e15339574e7cfe7d98e9d6bd17b446c22d GitHub
+25
-
-
Georg Richter committed 2024-09-252024-09-25 11:35
CONPY-293: Fix gcc warnings
  mariadb-corporation/mariadb-connector-python
3d34bb6880c65eea4f736c85005aa0700124918e GitHub
-
±3
-1