Browse Source

Fix build error

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 12 years ago
parent
commit
8c7a9409a2
2 changed files with 6 additions and 0 deletions
  1. 5 0
      common/deftype/deftype.cpp
  2. 1 0
      common/deftype/deftype.hpp

+ 5 - 0
common/deftype/deftype.cpp

@@ -239,6 +239,11 @@ static IValue * castViaString(ITypeInfo * type, bool isSignedValue, __int64 valu
     return temp2->castTo(type);
 }
 
+bool isAscii(ITypeInfo * type)
+{
+    return type->queryCharset()->queryName() == asciiAtom;
+}
+
 //===========================================================================
 
 CTypeInfo::~CTypeInfo()

+ 1 - 0
common/deftype/deftype.hpp

@@ -287,6 +287,7 @@ extern DEFTYPE_API ICharsetInfo * getCharset(_ATOM charset);
 extern DEFTYPE_API ICollationInfo * getCollation(_ATOM collation);
 extern DEFTYPE_API ITranslationInfo * getDefaultTranslation(ICharsetInfo * tgt, ICharsetInfo * src);
 extern DEFTYPE_API ITranslationInfo * queryDefaultTranslation(ICharsetInfo * tgt, ICharsetInfo * src);
+extern DEFTYPE_API bool isAscii(ITypeInfo * type);
 
 //---------------------------------------------------------------------------