diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2013-03-25 11:07:45 +0100 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2013-03-25 11:07:45 +0100 |
commit | cd9e1938ef503b423a652aff0b5d1e0a76361fc6 (patch) | |
tree | d29da2e98a25aebacecef85bc16d721bd9afd8fb /storage/connect/mycat.cc | |
parent | 8f0ae6322c40aa339f9362f59715440952c34a3e (diff) | |
download | mariadb-git-cd9e1938ef503b423a652aff0b5d1e0a76361fc6.tar.gz |
- Add a new table option SEPINDEX (not used yet) and remove an unused
parameter to all catalog info functions.
modified:
storage/connect/catalog.h
storage/connect/filamvct.cpp
storage/connect/filamzip.cpp
storage/connect/ha_connect.cc
storage/connect/mycat.cc
storage/connect/mycat.h
storage/connect/reldef.cpp
storage/connect/reldef.h
storage/connect/tabdos.cpp
storage/connect/tabfmt.cpp
storage/connect/tabmul.cpp
storage/connect/tabmysql.cpp
storage/connect/tabodbc.cpp
storage/connect/tabsys.cpp
storage/connect/tabtbl.cpp
storage/connect/tabvct.cpp
storage/connect/tabwmi.cpp
storage/connect/tabxml.cpp
storage/connect/xindex.cpp
Diffstat (limited to 'storage/connect/mycat.cc')
-rw-r--r-- | storage/connect/mycat.cc | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/storage/connect/mycat.cc b/storage/connect/mycat.cc index 9cfd204c0a8..1d3fa347555 100644 --- a/storage/connect/mycat.cc +++ b/storage/connect/mycat.cc @@ -235,7 +235,7 @@ MYCAT::MYCAT(PHC hc) : CATALOG() Hc= hc; To_Desc= NULL; DefHuge= false; - SepIndex= true; // Temporay until we can store offet and size +//SepIndex= true; // Temporay until we can store offet and size } // end of MYCAT constructor /***********************************************************************/ @@ -273,7 +273,7 @@ void MYCAT::SetPath(PGLOBAL g, LPCSTR *datapath, const char *path) /***********************************************************************/ /* This function sets an integer MYCAT information. */ /***********************************************************************/ -bool MYCAT::SetIntCatInfo(LPCSTR name, PSZ what, int n) +bool MYCAT::SetIntCatInfo(PSZ what, int n) { return Hc->SetIntegerOption(what, n); } // end of SetIntCatInfo @@ -281,7 +281,7 @@ bool MYCAT::SetIntCatInfo(LPCSTR name, PSZ what, int n) /***********************************************************************/ /* This function returns integer MYCAT information. */ /***********************************************************************/ -int MYCAT::GetIntCatInfo(LPCSTR name, PSZ what, int idef) +int MYCAT::GetIntCatInfo(PSZ what, int idef) { int n= Hc->GetIntegerOption(what); @@ -291,7 +291,7 @@ int MYCAT::GetIntCatInfo(LPCSTR name, PSZ what, int idef) /***********************************************************************/ /* This function returns Boolean MYCAT information. */ /***********************************************************************/ -bool MYCAT::GetBoolCatInfo(LPCSTR name, PSZ what, bool bdef) +bool MYCAT::GetBoolCatInfo(PSZ what, bool bdef) { bool b= Hc->GetBooleanOption(what, bdef); @@ -301,7 +301,7 @@ bool MYCAT::GetBoolCatInfo(LPCSTR name, PSZ what, bool bdef) /***********************************************************************/ /* This function returns size catalog information. */ /***********************************************************************/ -int MYCAT::GetSizeCatInfo(LPCSTR name, PSZ what, PSZ sdef) +int MYCAT::GetSizeCatInfo(PSZ what, PSZ sdef) { char * s, c; int i, n= 0; @@ -323,8 +323,7 @@ int MYCAT::GetSizeCatInfo(LPCSTR name, PSZ what, PSZ sdef) /***********************************************************************/ /* This function sets char MYCAT information in buf. */ /***********************************************************************/ -int MYCAT::GetCharCatInfo(LPCSTR name, PSZ what, - PSZ sdef, char *buf, int size) +int MYCAT::GetCharCatInfo(PSZ what, PSZ sdef, char *buf, int size) { char *s= Hc->GetStringOption(what); @@ -336,7 +335,7 @@ int MYCAT::GetCharCatInfo(LPCSTR name, PSZ what, /* This function returns string MYCAT information. */ /* Default parameter is "*" to get the handler default. */ /***********************************************************************/ -char *MYCAT::GetStringCatInfo(PGLOBAL g, PSZ name, PSZ what, PSZ sdef) +char *MYCAT::GetStringCatInfo(PGLOBAL g, PSZ what, PSZ sdef) { char *sval, *s= Hc->GetStringOption(what, sdef); @@ -359,7 +358,7 @@ char *MYCAT::GetStringCatInfo(PGLOBAL g, PSZ name, PSZ what, PSZ sdef) /***********************************************************************/ int MYCAT::GetColCatInfo(PGLOBAL g, PTABDEF defp) { - char *type= GetStringCatInfo(g, NULL, "Type", "DOS"); + char *type= GetStringCatInfo(g, "Type", "DOS"); int i, loff, poff, nof, nlg; void *field= NULL; TABTYPE tc; |