Skip to content

Commit

Permalink
fixed GH #2970: Poco::Data::TypeHandler<Poco::Nullable<T>>::prepare()…
Browse files Browse the repository at this point in the history
… must prepare with underlying type, not Poco::Data::Keywords::null
  • Loading branch information
obiltschnig committed Apr 1, 2020
1 parent 5a5e858 commit 95d38c8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Data/include/Poco/Data/TypeHandler.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class TypeHandler<Nullable<T>>
poco_assert_dbg (!pPreparator.isNull());
if (obj.isNull())
{
pPreparator->prepare(pos++, Poco::Data::Keywords::null);
pPreparator->prepare(pos++, T());
}
else
{
Expand All @@ -292,7 +292,7 @@ class TypeHandler<Nullable<T>>

if (pExt->extract(pos++, val))
{
obj = val;
obj = std::move(val);
}
else
{
Expand Down

0 comments on commit 95d38c8

Please sign in to comment.