Parcourir la source

Merge pull request #12435 from richardkchapman/keyedint_child

HPCC-21896 queryChildType not implemented for rtlKeyedIntTypeInfo

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday il y a 6 ans
Parent
commit
b456102b95
2 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. 6 0
      rtl/eclrtl/rtlfield.cpp
  2. 2 0
      rtl/eclrtl/rtlfield.hpp

+ 6 - 0
rtl/eclrtl/rtlfield.cpp

@@ -904,6 +904,12 @@ __int64 RtlKeyedIntTypeInfo::removeBias(unsigned __int64 value, unsigned length)
     return value - ((unsigned __int64)1 << (length*8-1));
 }
 
+const RtlTypeInfo * RtlKeyedIntTypeInfo::queryChildType() const
+{
+    return child;
+}
+
+
 //-------------------------------------------------------------------------------------------------------------------
 
 size32_t RtlPackedIntTypeInfo::getMinSize() const

+ 2 - 0
rtl/eclrtl/rtlfield.hpp

@@ -216,6 +216,8 @@ struct ECLRTL_API RtlKeyedIntTypeInfo final : public RtlTypeInfoBase
     virtual int compare(const byte * left, const byte * right) const override;
     virtual bool canMemCmp() const override { return true; }
     virtual unsigned hash(const byte *self, unsigned inhash) const override;
+    virtual const RtlTypeInfo * queryChildType() const override;
+
 private:
     inline __uint64 getUInt(const void * ptr) const { return (__uint64) getInt(ptr); }
     static unsigned __int64 addBias(__int64 value, unsigned length);