mirror of
https://github.com/oatpp/oatpp.git
synced 2025-03-01 17:46:02 +08:00
ORM: Fix query result.
This commit is contained in:
parent
687a2016f1
commit
5f81d45b2d
@ -39,7 +39,7 @@ Any::Any(std::nullptr_t) : Any() {}
|
||||
Any::Any(const std::shared_ptr<AnyHandle>& handle, const Type* const type)
|
||||
: ObjectWrapper(handle, __class::Any::getType())
|
||||
{
|
||||
// As an ObjectWrapper, Any must have this constructor. It is used in ObjectWrapper.staticCast<T>(...) method.
|
||||
// As an ObjectWrapper, Any must have this constructor. It is used in ObjectWrapper.cast<T>(...) method.
|
||||
// However, unlike other ObjectWrappers Any won't change its valueType.
|
||||
// Any is always object wrapper above AnyHandler.
|
||||
(void)type;
|
||||
|
@ -94,7 +94,7 @@ public:
|
||||
*/
|
||||
template<class Wrapper>
|
||||
Wrapper fetch(v_int64 count = -1) {
|
||||
return fetch(Wrapper::Class::getType(), count).template staticCast<Wrapper>();
|
||||
return fetch(Wrapper::Class::getType(), count).template cast<Wrapper>();
|
||||
}
|
||||
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user