mirror of
https://github.com/oatpp/oatpp-postgresql.git
synced 2024-11-21 01:05:09 +08:00
ResultMapper: Fix readOneRowAsMap() method (#16)
This commit is contained in:
parent
d976ba6950
commit
f2842b2ad8
@ -113,7 +113,7 @@ oatpp::Void ResultMapper::readOneRowAsMap(ResultMapper* _this, ResultData* dbDat
|
||||
throw std::runtime_error("[oatpp::postgresql::mapping::ResultMapper::readOneRowAsMap()]: Invalid map key. Key should be String");
|
||||
}
|
||||
|
||||
const Type* valueType = map.getValueType();
|
||||
const Type* valueType = dispatcher->getValueType();
|
||||
for(v_int32 i = 0; i < dbData->colCount; i ++) {
|
||||
mapping::Deserializer::InData inData(dbData->dbResult, rowIndex, i, dbData->typeResolver);
|
||||
dispatcher->addItem(map, dbData->colNames[i], _this->m_deserializer.deserialize(inData, valueType));
|
||||
|
Loading…
Reference in New Issue
Block a user