Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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)

AltStyle によって変換されたページ (->オリジナル) /