Re: PQgetvalue failed to return column value for non-text data in binary format - Mailing list pgsql-interfaces

From Jeff Lynn
Subject Re: PQgetvalue failed to return column value for non-text data in binary format
Date
Msg-id 465333D1.2020505@rogers.com
Whole thread Raw
Responses Re: Re: PQgetvalue failed to return column value for non-text data in binary format  (Andrew McNamara <andrewm@object-craft.com.au>)
List pgsql-interfaces
Thank you for your comment about text and binary format.  To use text, I 
thought one will have to construct the insert sql statement on the fly, 
which will incurs server parsing, syntax checking followed by 
execution.  With binary format, I can simply prepare a statement and 
then update each binded parameter prior to execute the prepared 
statement over each records.

Is there a way for me to prepare the insert statment and pass in text 
instead of, say, double precision?  I experimented with that the the 
server reject the insert statement with "mismatched datatype" error.

Jeff



pgsql-interfaces by date:

Previous
From: "Jeroen T. Vermeulen"
Date:
Subject: Re: PQgetvalue failed to return column value for non-text data in binary format
Next
From: Jeff Lynn
Date:
Subject: Re: PQgetvalue failed to return column value for non-text data in binary format