1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-05 13:16:09 +03:00

MDEV-19275 SQL service for plugins.

review fixes.
This commit is contained in:
Alexey Botchkov
2021-09-13 09:21:47 +04:00
committed by Oleksandr Byelkin
parent e1f9a80900
commit 585d88a237
5 changed files with 52 additions and 6 deletions

View File

@@ -322,6 +322,14 @@ typedef struct st_mysql_res {
} MYSQL_RES;
/*
We should not define MYSQL_CLIENT when the mysql.h is included
by the server or server plugins.
Now it is important only for the SQL service to work so we rely on
the MYSQL_SERVICE_SQL to check we're compiling the server/plugin
related file.
*/
#if !defined(MYSQL_SERVICE_SQL) && !defined(MYSQL_CLIENT)
#define MYSQL_CLIENT
#endif