From 98c3105138615c9765e7bd644b7fa9e72e15e84d Mon Sep 17 00:00:00 2001 From: prabatuty Date: Mon, 9 May 2011 17:22:06 +0000 Subject: [PATCH] fix for trie index --- src/storage/DatabaseManagerImpl.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/storage/DatabaseManagerImpl.cxx b/src/storage/DatabaseManagerImpl.cxx index b9e402ba..87f5844d 100644 --- a/src/storage/DatabaseManagerImpl.cxx +++ b/src/storage/DatabaseManagerImpl.cxx @@ -1484,9 +1484,8 @@ DbRetVal DatabaseManagerImpl::validateIndex(const char *tblName, return ErrNotExists; } } - CFIELD* fInfo = (CFIELD*)fptr[0]; - if (!(fInfo->type_ == typeInt || fInfo->type_ == typeLong || fInfo->type_ == typeLongLong || fInfo->type_ == typeString -|| fInfo->type_ == typeVarchar)) + CFIELD* fInfo = (CFIELD*)*fptr[0]; + if (!(fInfo->type_ == typeInt || fInfo->type_ == typeLongLong || fInfo->type_ == typeString || fInfo->type_ == typeVarchar)) { printError(ErrBadArg, "Trie Index cannot be created for float or double or timestamp type"); return ErrBadArg; -- 2.11.4.GIT