Browse Source

Merge pull request #2606 from rengolin/intindex

Fix gh-2393 Error on keyed child index

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday 13 years ago
parent
commit
850c1f67f5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      ecl/hql/hqlgram2.cpp

+ 1 - 1
ecl/hql/hqlgram2.cpp

@@ -6749,7 +6749,7 @@ void HqlGram::checkIndexFieldType(IHqlExpression * expr, bool isPayload, bool in
                 {
                     if (type->isSigned() ||
                         ((type->getTypeCode() == type_littleendianint) && (type->getSize() != 1)))
-                        reportWarning(ERR_INDEX_BADTYPE, errpos.pos, "Signed or little-endian field %s is not supported inside a keyed record field ", name->str());
+                        reportError(ERR_INDEX_BADTYPE, errpos.pos, "Signed or little-endian field %s is not supported inside a keyed record field ", name->str());
                 }
                 break;
             default: