Package Details: python-mariadb-connector 1.1.10-1

Git Clone URL: https://aur.archlinux.org/python-mariadb-connector.git (read-only, click to copy)
Package Base: python-mariadb-connector
Description: A Python DB API 2.0 compliant API for access to MariaDB and MySQL databases
Upstream URL: https://mariadb.com/kb/en/mariadb-connector-python/
Licenses: LGPL
Submitter: kiito
Maintainer: kiito
Last Packager: kiito
Votes: 7
Popularity: 0.62
First Submitted: 2020-05-10 13:26 (UTC)
Last Updated: 2024-03-09 15:49 (UTC)

Latest Comments

Nestor_013 commented on 2024-05-26 08:27 (UTC) (edited on 2024-05-26 08:27 (UTC) by Nestor_013)

It seems that gcc-14 is more strict about conversions from const pointers to pointers.

By commenting the const on line 1128 of mariadb_cursor.c like this

 /*const*/ char *statement;

it compiles. To me (but I could be wrong) the constness of *statement is not critical.

kiito commented on 2024-05-25 14:47 (UTC)

Hmm, I seems building with python 3.12 isn't an issue upstream. I'm currently unable to investigate myself but will try to see to it until next weekend.

ronengi commented on 2024-05-25 12:25 (UTC)

Can't Build package.

mariadb/mariadb_cursor.c: In function ‘MrdbCursor_execute_text’:
mariadb/mariadb_cursor.c:1138:39: error: passing argument 2 of ‘PyBytes_AsStringAndSize’ from incompatible pointer type [-Wincompatible-pointer-types]
 1138 |         PyBytes_AsStringAndSize(stmt, &statement, (Py_ssize_t *)&statement_len);
      |                                       ^~~~~~~~~~
      |                                       |
      |                                       const char **
In file included from /usr/include/python3.12/Python.h:50,
                 from ./include/mariadb_python.h:21,
                 from mariadb/mariadb_cursor.c:20:
/usr/include/python3.12/bytesobject.h:56:12: note: expected ‘char **’ but argument is of type ‘const char **’
   56 |     char **s,           /* pointer to buffer variable */
      |     ~~~~~~~^
error: command '/usr/bin/gcc' failed with exit code 1
==> ERROR: A failure occurred in build().
    Aborting...