summaryrefslogtreecommitdiff
path: root/storage/connect/mycat.cc
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2014-10-31 12:28:07 +0100
committerOlivier Bertrand <bertrandop@gmail.com>2014-10-31 12:28:07 +0100
commit4a17149ba32a604eabf95c198b00fc4b156f8d5d (patch)
tree24cf8575ba6042de0c23a6a61c391d3889082b6d /storage/connect/mycat.cc
parent652b96482789ddee1b01c69559fc0d3840976f88 (diff)
downloadmariadb-git-4a17149ba32a604eabf95c198b00fc4b156f8d5d.tar.gz
- Add new table type VIR and virtual index
modified: storage/connect/connect.cc storage/connect/ha_connect.cc storage/connect/ha_connect.h storage/connect/mycat.cc storage/connect/plgdbsem.h - Get good message when calling ColDB modified: storage/connect/connect.cc - Fix buffer preparation for BIN files modified: storage/connect/filamfix.cpp fix error while updating (force fseek) modified: storage/connect/filamfix.cpp fix error of XCOL column when filtered (typo) modified: storage/connect/tabdos.cpp storage/connect/tabxcl.cpp fix error when indexing on special column modified: storage/connect/tabdos.cpp
Diffstat (limited to 'storage/connect/mycat.cc')
-rw-r--r--storage/connect/mycat.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/storage/connect/mycat.cc b/storage/connect/mycat.cc
index 09a5b7a4dbc..fc6c29092a1 100644
--- a/storage/connect/mycat.cc
+++ b/storage/connect/mycat.cc
@@ -88,6 +88,7 @@
#if defined(PIVOT_SUPPORT)
#include "tabpivot.h"
#endif // PIVOT_SUPPORT
+#include "tabvir.h"
#include "ha_connect.h"
#include "mycat.h"
@@ -137,6 +138,7 @@ TABTYPE GetTypeID(const char *type)
#ifdef PIVOT_SUPPORT
: (!stricmp(type, "PIVOT")) ? TAB_PIVOT
#endif
+ : (!stricmp(type, "VIR")) ? TAB_VIR
: (!stricmp(type, "OEM")) ? TAB_OEM : TAB_NIY;
} // end of GetTypeID
@@ -180,6 +182,7 @@ bool IsExactType(TABTYPE type)
case TAB_DBF:
// case TAB_XML: depends on Multiple || Xpand || Coltype
case TAB_VEC:
+ case TAB_VIR:
exact= true;
break;
default:
@@ -278,6 +281,9 @@ int GetIndexType(TABTYPE type)
// case TAB_ODBC:
xtyp= 2;
break;
+ case TAB_VIR:
+ xtyp= 3;
+ break;
case TAB_ODBC:
default:
xtyp= 0;
@@ -531,6 +537,7 @@ PRELDEF MYCAT::MakeTableDesc(PGLOBAL g, LPCSTR name, LPCSTR am)
#if defined(PIVOT_SUPPORT)
case TAB_PIVOT: tdp= new(g) PIVOTDEF; break;
#endif // PIVOT_SUPPORT
+ case TAB_VIR: tdp= new(g) VIRDEF; break;
default:
sprintf(g->Message, MSG(BAD_TABLE_TYPE), am, name);
} // endswitch