Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #161 from naoa/support-stored-virtual-column
Browse files Browse the repository at this point in the history
mariadb 10.2: support virtual column

Patch by Naoya Murakami. Thanks!!!
  • Loading branch information
kou committed Aug 14, 2017
2 parents fe283c0 + d0e8176 commit cdaf15b
Show file tree
Hide file tree
Showing 12 changed files with 50 additions and 10 deletions.
6 changes: 6 additions & 0 deletions ha_mroonga.cpp
Expand Up @@ -2831,6 +2831,9 @@ ulonglong ha_mroonga::wrapper_table_flags() const
#endif
#ifdef HA_GENERATED_COLUMNS
table_flags |= HA_GENERATED_COLUMNS;
#endif
#ifdef HA_CAN_VIRTUAL_COLUMNS
table_flags |= HA_CAN_VIRTUAL_COLUMNS;
#endif
DBUG_RETURN(table_flags);
}
Expand Down Expand Up @@ -2863,6 +2866,9 @@ ulonglong ha_mroonga::storage_table_flags() const
#endif
#ifdef HA_GENERATED_COLUMNS
flags |= HA_GENERATED_COLUMNS;
#endif
#ifdef HA_CAN_VIRTUAL_COLUMNS
flags |= HA_CAN_VIRTUAL_COLUMNS;
#endif
DBUG_RETURN(flags);
}
Expand Down
@@ -0,0 +1,24 @@
# Copyright(C) 2017 Naoya Murakami <naoya@createfield.com>
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source ../../include/mroonga/check_version.inc
--source ../../include/mroonga/check_mariadb.inc

if (!$version_10_2_or_later) {
if ($mariadb) {
--skip This test is not for MariaDB 5.x or MariaDB 10.0.x, 10.1.x
}
}
Expand Up @@ -14,7 +14,8 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down
Expand Up @@ -14,7 +14,8 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down
Expand Up @@ -14,7 +14,8 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down
Expand Up @@ -14,7 +14,8 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down
Expand Up @@ -14,7 +14,8 @@
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down
Expand Up @@ -15,7 +15,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source include/have_innodb.inc
--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down
Expand Up @@ -15,7 +15,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source include/have_innodb.inc
--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down
Expand Up @@ -15,7 +15,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source include/have_innodb.inc
--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down
Expand Up @@ -15,7 +15,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source include/have_innodb.inc
--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down
Expand Up @@ -15,7 +15,8 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA

--source include/have_innodb.inc
--source ../../../../../include/mroonga/have_mysql_5_7_or_later.inc
--source ../../../../../include/mroonga/have_version_5_7_or_later.inc
--source ../../../../../include/mroonga/skip_mariadb_10_1_or_earlier.inc
--source ../../../../../include/mroonga/have_mroonga.inc

--disable_warnings
Expand Down

0 comments on commit cdaf15b

Please sign in to comment.