1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Cleanup: removing Type_handler members m_version_xxx

Introducing methods instead:
  const Name version_mysql56() const;
  const Name version_mariadb53() const;

This is needed to avoid exporting members with MYSQL_PLUGIN_IMPORT,
which would be needed to compile data type plugins on Windows.
This commit is contained in:
Alexander Barkov
2019-09-17 07:15:02 +04:00
parent c11e26946f
commit 9b1866fd84
2 changed files with 26 additions and 14 deletions

View File

@@ -1475,10 +1475,23 @@ const Name Type_handler_ulonglong::name() const
/***************************************************************************/
const Name
Type_handler::m_version_default(STRING_WITH_LEN("")),
Type_handler::m_version_mariadb53(STRING_WITH_LEN("mariadb-5.3")),
Type_handler::m_version_mysql56(STRING_WITH_LEN("mysql-5.6"));
const Name Type_handler::version() const
{
static const Name ver(STRING_WITH_LEN(""));
return ver;
}
const Name Type_handler::version_mariadb53() const
{
static const Name ver(STRING_WITH_LEN("mariadb-5.3"));
return ver;
}
const Name Type_handler::version_mysql56() const
{
static const Name ver(STRING_WITH_LEN("mysql-5.6"));
return ver;
}
/***************************************************************************/