diff options
author | Ghaster <theghaster1@gmail.com> | 2023-03-11 15:38:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-11 15:38:46 +0100 |
commit | 5c9283244b9b2121037af5db94f626aeebdbddc3 (patch) | |
tree | 83f7979d98172242416249d5702abf0f85b2b6cc /src/common/DataStores/DB2FileLoader.cpp | |
parent | e0e70948e456bac3fdac70e75ad4260476f5b3d6 (diff) |
Core/DataStores: Fixed loading CommonData when IdTable is present (#28853)
Diffstat (limited to 'src/common/DataStores/DB2FileLoader.cpp')
-rw-r--r-- | src/common/DataStores/DB2FileLoader.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/DataStores/DB2FileLoader.cpp b/src/common/DataStores/DB2FileLoader.cpp index ab2c5a99f50..1254b98992b 100644 --- a/src/common/DataStores/DB2FileLoader.cpp +++ b/src/common/DataStores/DB2FileLoader.cpp @@ -809,7 +809,7 @@ T DB2FileLoaderRegularImpl::RecordGetVarInt(uint8 const* record, uint32 field, u } case DB2ColumnCompression::CommonData: { - uint32 id = RecordGetId(record, (_data.get() - record) / _header->RecordSize); + uint32 id = RecordGetId(record, (record - _data.get()) / _header->RecordSize); T value; auto valueItr = _commonValues[field].find(id); if (valueItr != _commonValues[field].end()) |