Skip to content

Poco::Data::TypeHandler<Poco::Nullable<T>>::prepare() must prepare with underlying type, not Poco::Data::Keywords::null #2970

@obiltschnig

Description

@obiltschnig

Furthermore, calling AbstractPreparator::prepare() with Poco::Data::Keywords::null will actually call the prepare() overload for int, resulting in an exception later on when actually fetching the value and the value cannot be converted to an int.

Solution: call AbstractPreparator::prepare() with T() instead.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions