diff options
author | Olivier Bertrand <bertrandop@gmail.com> | 2017-02-16 18:01:48 +0100 |
---|---|---|
committer | Olivier Bertrand <bertrandop@gmail.com> | 2017-02-16 18:01:48 +0100 |
commit | 6f34d8807c5343dfa07949ce95a1ad92c2972756 (patch) | |
tree | 5308fbf7a5873cc52f8b047c12ceed3a5d0bfa48 /storage/connect/xindex.cpp | |
parent | 82913b0e909a3b8f10138f7f7cc759301f4c2026 (diff) | |
download | mariadb-git-6f34d8807c5343dfa07949ce95a1ad92c2972756.tar.gz |
All changes made on 10.1
Diffstat (limited to 'storage/connect/xindex.cpp')
-rwxr-xr-x | storage/connect/xindex.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/storage/connect/xindex.cpp b/storage/connect/xindex.cpp index a2cf4e77b80..20d582961e7 100755 --- a/storage/connect/xindex.cpp +++ b/storage/connect/xindex.cpp @@ -81,7 +81,7 @@ int PlgMakeIndex(PGLOBAL g, PSZ name, PIXDEF pxdf, bool add) { int rc; PTABLE tablep; - PTDBASE tdbp; + PTDB tdbp; PCATLG cat = PlgGetCatalog(g, true); /*********************************************************************/ @@ -89,12 +89,12 @@ int PlgMakeIndex(PGLOBAL g, PSZ name, PIXDEF pxdf, bool add) /*********************************************************************/ tablep = new(g) XTAB(name); - if (!(tdbp = (PTDBASE)cat->GetTable(g, tablep))) + if (!(tdbp = cat->GetTable(g, tablep))) rc = RC_NF; else if (!tdbp->GetDef()->Indexable()) { sprintf(g->Message, MSG(TABLE_NO_INDEX), name); rc = RC_NF; - } else if ((rc = tdbp->MakeIndex(g, pxdf, add)) == RC_INFO) + } else if ((rc = ((PTDBASE)tdbp)->MakeIndex(g, pxdf, add)) == RC_INFO) rc = RC_OK; // No or remote index return rc; |