浏览代码

HPCC-9910 Undefined symbol with dictionary using INTEGER type

Typo in the header file.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 11 年之前
父节点
当前提交
4658919493
共有 3 个文件被更改,包括 14 次插入1 次删除
  1. 1 1
      rtl/eclrtl/rtlds_imp.hpp
  2. 10 0
      testing/ecl/dict_int.ecl
  3. 3 0
      testing/ecl/key/dict_int.xml

+ 1 - 1
rtl/eclrtl/rtlds_imp.hpp

@@ -443,7 +443,7 @@ extern ECLRTL_API byte *rtlDictionaryLookupString(size32_t tableSize, byte **tab
 extern ECLRTL_API byte *rtlDictionaryLookupStringN(size32_t tableSize, byte **table, size32_t N, size32_t len, const char *source, byte *defaultRow);
 extern ECLRTL_API byte *rtlDictionaryLookupSigned(size32_t tableSize, byte **table, __int64 source, byte *defaultRow);
 extern ECLRTL_API byte *rtlDictionaryLookupUnsigned(size32_t tableSize, byte **table, __uint64 source, byte *defaultRow);
-extern ECLRTL_API byte *rtlDictionaryLookupSignedN(size32_t tableSize, byte **table, size32_t size, __uint64 source, byte *defaultRow);
+extern ECLRTL_API byte *rtlDictionaryLookupSignedN(size32_t tableSize, byte **table, size32_t size, __int64 source, byte *defaultRow);
 extern ECLRTL_API byte *rtlDictionaryLookupUnsignedN(size32_t tableSize, byte **table, size32_t size, __uint64 source, byte *defaultRow);
 
 extern ECLRTL_API bool rtlDictionaryLookupExists(IHThorHashLookupInfo &hashInfo, size32_t tableSize, byte **table, const byte *source);

+ 10 - 0
testing/ecl/dict_int.ecl

@@ -0,0 +1,10 @@
+DataRec := RECORD
+   INTEGER2   f;
+   INTEGER2   v;
+END;
+
+d := DATASET([{1,2},{3,4}],DataRec);
+
+i := DICTIONARY(d,{f => v});
+
+OUTPUT(i[3]);

+ 3 - 0
testing/ecl/key/dict_int.xml

@@ -0,0 +1,3 @@
+<Dataset name='Result 1'>
+ <Row><f>3</f><v>4</v></Row>
+</Dataset>