Thread: Prepared statements and cursors

Prepared statements and cursors

From
"Cyril VELTER"
Date:
    I'm trying to open a prepared statement as a cursor using libpq. As I
understand it, there is some support for this at the protocol level but not
at the libpq level. The protocol doc say that one must use standard sql
commands for that.

    But "DECLARE TEST CURSOR FOR EXECUTE MONSTATEMENT(7123)" give me a
syntax error near "execute".

    Any ideas ?

    Thanks,

    Cyril