diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2013-12-04 23:53:30 +0100 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2013-12-04 23:53:30 +0100 |
commit | a8b09c14efbbb051e0d682fa9dd0961028b43203 (patch) | |
tree | 437cde3b37759b449455ff38b08bcf0180f130a3 /storage/connect/mycat.cc | |
parent | 41dbe1c96b225d2be3b3df99ac9d66cf274d7e4c (diff) | |
download | mariadb-git-a8b09c14efbbb051e0d682fa9dd0961028b43203.tar.gz |
- Fix bug MDEV-5261
modified:
storage/connect/ha_connect.cc
storage/connect/mycat.cc
storage/connect/mycat.h
Diffstat (limited to 'storage/connect/mycat.cc')
-rw-r--r-- | storage/connect/mycat.cc | 40 |
1 files changed, 25 insertions, 15 deletions
diff --git a/storage/connect/mycat.cc b/storage/connect/mycat.cc index a9326b38bb5..092d38a142a 100644 --- a/storage/connect/mycat.cc +++ b/storage/connect/mycat.cc @@ -172,21 +172,6 @@ bool IsTypeNullable(TABTYPE type) { bool nullable; -#if 0 - switch (type) { - case TAB_ODBC: - case TAB_MYSQL: - case TAB_TBL: - case TAB_INI: - case TAB_XML: - nullable= true; - break; - default: - nullable= false; - break; - } // endswitch type -#endif // 0 - switch (type) { case TAB_MAC: case TAB_DIR: @@ -223,6 +208,31 @@ bool IsTypeFixed(TABTYPE type) } // end of IsTypeFixed /***********************************************************************/ +/* Return true for table types with fix length records. */ +/***********************************************************************/ +bool IsTypeIndexable(TABTYPE type) + { + bool idx; + + switch (type) { + case TAB_DOS: + case TAB_CSV: + case TAB_FMT: + case TAB_FIX: + case TAB_BIN: + case TAB_VEC: + case TAB_DBF: + idx= true; + break; + default: + idx= false; + break; + } // endswitch type + + return idx; + } // end of IsTypeIndexable + +/***********************************************************************/ /* Get a unique enum catalog function ID. */ /***********************************************************************/ uint GetFuncID(const char *func) |