On 24 September 2013 21:27, Witold E Wolski <[email protected]> wrote:
> How to get the id of the last inserted row?

See session_backend class definition, two get_* methods with related comments.
Keep in mind, this is backend-specific behaviour,

For SQLite3, it has been implemented in pull request
https://github.com/SOCI/soci/pull/184/
but not yet merged (I will merge it during next days, release in SOCI
3.3.0 or 3.2.3)
Note, #184 is closed, but  being split into separate pull requests to
be posted soon.

Meanwhile, patch your SOCI with definition from
sqlite3_session_backend::get_last_insert_id
(see https://github.com/SOCI/soci/pull/184/files)

Best regards,
-- 
Mateusz  Loskot, http://mateusz.loskot.net
"Participation in this whole process is a form of torture" ~~ Szalony

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to