I did that for resolving my problem, but I wanted to know why this happens. 
But tks anyway, that really resolves it.

----- Original Message ----- 
From: "Bart Samwel" <[EMAIL PROTECTED]>
To: "Luis Silva" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; <[email protected]>
Sent: Wednesday, April 12, 2006 10:10 PM
Subject: Re: [libpqxx-general] Trigger Notify get_notifs() vs 
await_notification()


> Hi Luis,
>
> Luis Silva wrote:
>> One more thing (sorry..) I'm using pipes for inserting the queries. when 
>> I try to commit the transaction I get "can't commit,pipe still open". 
>> I've read the pqxx::pipeline Class Reference and I can't find a close() 
>> function:) . What might be the problem. Tks in advance
>
> I'm not sure what the "proper" solution is, but a quick one would be to 
> make sure that the pipeline object is destructed before commit, e.g. 
> (pseudocode):
>
> transaction t;
> {
>   pipeline p;
>   // ... do stuff ...
> }
> t.commit();
>
> That should probably do the trick. :-)
>
> Cheers,
> Bart
> 
_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to