Rupert Kittinger wrote:

> I have a suggestion about the icursorstream constructor: I find it
> somewhat inintuitive that the Query string must not be terminated by a
> semicolon, especially as the error message from postgres is not very
> helpful :-)
>
> How about trimming trailing semicolons in the library before building
> the DECLARE CURSOR statement?

Good idea.  It can search backwards through the string until it finds a
character that is not whitespace and not a semicolon, and make that the
last character in the string.


Jeroen


_______________________________________________
Libpqxx-general mailing list
[email protected]
http://gborg.postgresql.org/mailman/listinfo/libpqxx-general

Reply via email to