Navigation Menu

Skip to content

Commit

Permalink
mariadb10.3: follow THD::db type change
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 25, 2018
1 parent ca20ae4 commit 3c8a6e3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mrn_mysql_compat.h
@@ -1,6 +1,6 @@
/* -*- c-basic-offset: 2 -*- */
/*
Copyright(C) 2011-2017 Kouhei Sutou <kou@clear-code.com>
Copyright(C) 2011-2018 Kouhei Sutou <kou@clear-code.com>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -283,6 +283,8 @@

#if MYSQL_VERSION_ID >= 50706 && !defined(MRN_MARIADB_P)
# define MRN_THD_DB_PATH(thd) ((thd)->db().str)
#elif defined(MRN_MARIADB_P) && MYSQL_VERSION_ID >= 100306
# define MRN_THD_DB_PATH(thd) ((thd)->db.str)
#else
# define MRN_THD_DB_PATH(thd) ((thd)->db)
#endif
Expand Down

0 comments on commit 3c8a6e3

Please sign in to comment.