You've already forked mysql-audit
mirror of
https://github.com/trellix-enterprise/mysql-audit.git
synced 2025-12-14 18:14:01 +08:00
Added support for:
Percona 64-bit 5.7.34-37 MySQL 64-bit 8.0.25, 8.0.24, 5.7.34 MariaDB 64-bit 10.2.39, 10.2.38, 10.5.11, 10.5.10, 10.4.20, 10.4.19, 10.4.18, 10.4.17, 10.4.16, 10.4.15, 10.4.14, 10.4.13, 10.4.12, 10.4.11, 10.4.10, 10.4.8, 10.4.7, 10.4.6 MySQL 32-bit 5.7.34 MariaDB 32-bit 10.2.39, 10.2.38
This commit is contained in:
@@ -255,7 +255,7 @@ public:
|
||||
#if !defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID < 50709
|
||||
return thd->db;
|
||||
#elif defined(MARIADB_BASE_VERSION)
|
||||
#if MYSQL_VERSION_ID >= 100504
|
||||
#if MYSQL_VERSION_ID >= 100307
|
||||
return thd->db.str;
|
||||
#else
|
||||
return thd->db;
|
||||
@@ -578,7 +578,7 @@ static inline const CHARSET_INFO * pfs_connect_attrs_cs(const void * pfs)
|
||||
// and it may return an invalid value for view_db
|
||||
static inline const char *table_get_db_name(TABLE_LIST *table)
|
||||
{
|
||||
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100504
|
||||
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100307
|
||||
return table->db.str;
|
||||
#else
|
||||
return table->db;
|
||||
@@ -587,7 +587,7 @@ static inline const CHARSET_INFO * pfs_connect_attrs_cs(const void * pfs)
|
||||
|
||||
static inline const char *table_get_name(TABLE_LIST *table)
|
||||
{
|
||||
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100504
|
||||
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100307
|
||||
return table->table_name.str;
|
||||
#else
|
||||
return table->table_name;
|
||||
|
||||
@@ -31,8 +31,8 @@
|
||||
#include <mysql/plugin_audit.h>
|
||||
#endif
|
||||
|
||||
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100504
|
||||
// From MariaDB 10.5 we include macro definitions for items like MY_GNUC_PREREQ
|
||||
#if defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 100307
|
||||
// From MariaDB 10.3 we include macro definitions for items like MY_GNUC_PREREQ
|
||||
#include <my_compiler.h>
|
||||
#include <my_global.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user