Преглед на файлове

HPCC-23689 Support stored unsigned ints >= 2^31 in hthor/thor

This was only an issue with values >= 2^31 that were provided externally,
not default values.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Gavin Halliday преди 5 години
родител
ревизия
e8a1030685
променени са 1 файла, в които са добавени 6 реда и са изтрити 1 реда
  1. 6 1
      common/workunit/workunit.cpp

+ 6 - 1
common/workunit/workunit.cpp

@@ -11224,7 +11224,12 @@ __int64 CLocalWUResult::getResultInt() const
     if (s.length())
         s.read(result);
     else
-        result = p->getPropInt64("xmlValue");
+    {
+        // NOTE - we use this rather than getPropInt64 since it handles uint64 values up to MAX_UINT better (for our purposes)
+        const char *val = p->queryProp("xmlValue");
+        if (val)
+            result = rtlStrToInt8(strlen(val), val);
+    }
     return result;
 }