On 27 October 2012 02:46, Mateusz Loskot <[email protected]> wrote:
>
> session sql(postgresql , "dbname=mydb");
> sql << "create table soci_test(id integer)";
>
> int i;
> statement st = (sql.prepare << "insert into soci_test(id) values(:id)", 
> use(i));
> i = 5;
> st.execute(true);
> i = 6;
> st.execute(true); // ERROR: unnamed prepared statement does not exist
> i = 7;
> st.execute(true);

I've found the troublemaker!

It's the recent patch fixing server-side leak in PostgreSQL [1]
It causes premature cleanup  of repeatable statements,
here is quick line comment [2].
I created ticket to discuss how to tackle this issue [3].

[1] https://sourceforge.net/mailarchive/message.php?msg_id=29935544
[2] 
https://github.com/SOCI/soci/commit/02bb841bbc6d8d6306133ca4b4d8557d71031349#commitcomment-2067529
[3] https://github.com/SOCI/soci/issues/13

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
The Windows 8 Center - In partnership with Sourceforge
Your idea - your app - 30 days.
Get started!
http://windows8center.sourceforge.net/
what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to