Skip to content

Commit f2842b2

Browse files
committed
ResultMapper: Fix readOneRowAsMap() method (#16)
1 parent d976ba6 commit f2842b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/oatpp-postgresql/mapping/ResultMapper.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ oatpp::Void ResultMapper::readOneRowAsMap(ResultMapper* _this, ResultData* dbDat
113113
throw std::runtime_error("[oatpp::postgresql::mapping::ResultMapper::readOneRowAsMap()]: Invalid map key. Key should be String");
114114
}
115115

116-
const Type* valueType = map.getValueType();
116+
const Type* valueType = dispatcher->getValueType();
117117
for(v_int32 i = 0; i < dbData->colCount; i ++) {
118118
mapping::Deserializer::InData inData(dbData->dbResult, rowIndex, i, dbData->typeResolver);
119119
dispatcher->addItem(map, dbData->colNames[i], _this->m_deserializer.deserialize(inData, valueType));

0 commit comments

Comments
 (0)