Peter via Postfix-users:
> On 20/07/24 00:30, Wietse Venema via Postfix-users wrote:
> >> Just to throw another wrench in the works, MariaDB lists mysql_options()
> >> as deprecated in MariaDB Connector/C 3.0 and recommends mysql_optionsv()
> >> instead:
> >>
> >> https://mariadb.com/kb/en/mysql_options/
> >>
> >> For now it should work, but we may end up needing to patch postfix once
> >> again in the near future for this.
> >
> > Do you happen to know a combination of MYSQL_VERSION_ID, MARIADB_VERSION_ID,
> > and/or MARIADB_BASE_VERSION that matches "MariaDB Connector/C 3.0" and
> > later?
>
> MARIADB_PACKAGE_VERSION_ID stores the MariaDB Connector/C version
> number. I don't know what version mysql_optionsv first appears in but
> we do know it's in 3.0.0 at the very least which is where mysql_options
> is deprecated so I would say MARIADB_PACKAGE_VERSION_ID is defined and
> >= 30000 should be sufficient to allow this to keep working with
> mariadb into the foreseeable future. From what I can tell
> mysql_optionsv can be called exactly the same as mysql_options and it
> should work fine.
Thanks. I have updated the source, adding:
/*
* MariaDB Connector/C 3.0 lists mysql_options() as deprecated and
* recommends using mysql_optionsv() instead. Option names and semantics
* have not changed.
*/
#if defined(MARIADB_PACKAGE_VERSION_ID) && MARIADB_PACKAGE_VERSION_ID >= 30000
#define mysql_options mysql_optionsv
#endif
Wietse
_______________________________________________
Postfix-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]