https://bugs.exim.org/show_bug.cgi?id=2165
--- Comment #8 from Kris Karas <bugs-a17@???> ---
Created attachment 1037
-->
https://bugs.exim.org/attachment.cgi?id=1037&action=edit
Dumb prog to show constants defined in MySQL/MariaDB headers
Compiling the attached mysql-header-test.c against various versions of MySQL
and MariaDB headers, we have the output shown below. It was generated with
this simple loop:
for inc in include/*; do
echo -e "\n\t*** $inc ***"
gcc -I $inc -o test mysql-header-test.c && ./test
done
Output:
*** include/mariadb-10.1.26 ***
MYSQL_VERSION_ID = 100126
MYSQL_BASE_VERSION = mysqld-10.1
LIBMYSQL_VERSION = <Undefined>
MYSQL_SERVER_VERSION = 10.1.26-MariaDB
LIBMARIADB = <Undefined>
MARIADB_VERSION_ID = <Undefined>
MARIADB_BASE_VERSION = mariadb-10.1
MARIADB_CLIENT_VERSION_STR = <Undefined>
*** include/mariadb-10.2.5 ***
MYSQL_VERSION_ID = 100205
MYSQL_BASE_VERSION = mysqld-10.2
LIBMYSQL_VERSION = <Undefined>
MYSQL_SERVER_VERSION = 10.2.5-MariaDB
LIBMARIADB = <Undefined>
MARIADB_VERSION_ID = <Undefined>
MARIADB_BASE_VERSION = mariadb-10.2
MARIADB_CLIENT_VERSION_STR = 10.2.5 After #include <mariadb_version.h>
*** include/mariadb-10.2.8 ***
MYSQL_VERSION_ID = 100208
MYSQL_BASE_VERSION = <Undefined>
LIBMYSQL_VERSION = <Undefined>
MYSQL_SERVER_VERSION = <Undefined>
LIBMARIADB = <Defined>
MARIADB_VERSION_ID = 100208
MARIADB_BASE_VERSION = <Undefined>
MARIADB_CLIENT_VERSION_STR = 10.2.8
*** include/mariadb-5.5.25 ***
MYSQL_VERSION_ID = 50525
MYSQL_BASE_VERSION = mysqld-5.5
LIBMYSQL_VERSION = <Undefined>
MYSQL_SERVER_VERSION = 5.5.25-MariaDB
LIBMARIADB = <Undefined>
MARIADB_VERSION_ID = <Undefined>
MARIADB_BASE_VERSION = mariadb-5.5
MARIADB_CLIENT_VERSION_STR = <Undefined>
*** include/mysql-5.5.57 ***
MYSQL_VERSION_ID = 50557
MYSQL_BASE_VERSION = mysqld-5.5
LIBMYSQL_VERSION = <Undefined>
MYSQL_SERVER_VERSION = 5.5.57
LIBMARIADB = <Undefined>
MARIADB_VERSION_ID = <Undefined>
MARIADB_BASE_VERSION = <Undefined>
MARIADB_CLIENT_VERSION_STR = <Undefined>
*** include/mysql-5.7.19 ***
MYSQL_VERSION_ID = 50719
MYSQL_BASE_VERSION = mysqld-5.7
LIBMYSQL_VERSION = 5.7.19
MYSQL_SERVER_VERSION = 5.7.19
LIBMARIADB = <Undefined>
MARIADB_VERSION_ID = <Undefined>
MARIADB_BASE_VERSION = <Undefined>
MARIADB_CLIENT_VERSION_STR = <Undefined>
--
You are receiving this mail because:
You are on the CC list for the bug.