pocoproject / poco

The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.
https://pocoproject.org
Other
8.26k stars 2.14k forks source link

Question. INSERT NULL (using BULK-feature) #4001

Open ostropik opened 1 year ago

ostropik commented 1 year ago
std::vector< Poco::Nullable<Poco::Data::BLOB>> data;
data.push_back(Poco::Data::BLOB()); // zero size bianry data
m_stmt << "INSERT INTO VALUEXXX VALUES(?)", use(data, bulk), now;

Can't find any solution for INSERT NULL (using BULK-feature)

ostropik commented 1 year ago

Maybe missed something like

template <class T>
class TypeHandler<std::vector<Nullable<T>>> : public AbstractTypeHandler
    /// Specialization of type handler for std::vector with Nullable objects.

for

    Poco::SharedPtr<AbstractBinding> ptrBinder
        (new BulkBinding<std::vector< Poco::Nullable<Poco::Data::BLOB>>>(vec_of_null_blob_vec, static_cast<Poco::UInt32>(vec_of_null_blob_vec.size()), std::string()));
github-actions[bot] commented 5 months ago

This issue is stale because it has been open for 365 days with no activity.

github-actions[bot] commented 3 months ago

This issue was closed because it has been inactive for 60 days since being marked as stale.

github-actions[bot] commented 1 month ago

This issue was closed because it has been inactive for 60 days since being marked as stale.