2010/6/16 Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>:
>> But it success only at first time, and then fail with error:
>> ... "another command is already in progress"
>> [ PQsendQuery followed by just one PQgetResult ]
>
> IIRC, you need to keep calling PQgetResult until it returns NULL
> before the connection is considered cleared and ready for another query.
Yes, thanks, that was exactly what I missed.
Thanks to all, guys.
--
antonvm