ORM: Fix query result.

This commit is contained in:
lganzzzo 2021-11-08 00:36:13 +02:00
parent 687a2016f1
commit 5f81d45b2d
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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>();
}
};