[odb-users] Potential Bug in Bulk Persist template
(libodb/odb/database.ixx)
Nathanael Feßenbecker
nathanael.fessenbecker at ioki.com
Fri Jun 27 07:20:00 EDT 2025
Hello,
when attempting to use the new bulk persist mechanism, I stumpled upon a potential bug or at least something I do not understand
In libodb/odb/database.ixx:741
the
persist_ <typename I, database_id DB>
method calls the
persist_<I, typename opt::object_type, id_common>
method.
Inside of the latter one (within database.txx) is
object_traits_impl<object_type, DB>::batch
referenced.
This one NEVER exists for id_common. Only for id_pgsql etc.
So AFAIK the code in database.ixx is broken and line 741 should be
persist_<I, typename opt::object_type, DB >
Please advice
Thank you and Kind Regards
Nathanael Feßenbecker
More information about the odb-users
mailing list