On Thu, Nov 08, 2007 at 06:39:23PM -0800, jason wrote: > As you know the interface of PQexec(): > PGresult *PQexec(PGconn *conn, const char *command); > > "command" contains some SQL statements. > > But there exist "\0" in some data filed, and I found PQexec() failed > on such situation. Two ways: - out of line parameters - escape the nulls, like \0 Have a nice day, -- Martijn van Oosterhout <kleptog@xxxxxxxxx> http://svana.org/kleptog/ > Those who make peaceful revolution impossible will make violent revolution inevitable. > -- John F Kennedy
Attachment:
signature.asc
Description: Digital signature