Thread: PQexec(conn,buf)..... buf<255 chars?

PQexec(conn,buf)..... buf<255 chars?

From
"private"
Date:
Hi,
 
I'm writing a cgi, and use PQexec to submit a "simple" syncron. query.
 
The query is constructed by the program and varies in length.
The lenght is sometimes more than 255 chars and PQtrace only reports 
.....parse error at ""
(if I cut and paste the query into psql it works fine)
 
Is it possible that there is a limit? is there a way to reconfigure, fix or go arround it?
I'm using RedHat 6.1 & PostgreSQL 6.5.2
 
any suggestions welcome.