pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Byron Nikolaidis <byronn@solipsys.com>
To: Robin Whitworth <rwhit@goldwiretech.com>
Cc: pgsql-interfaces@postgreSQL.org
Subject: Re: [INTERFACES] ODBC & bytea
Date: Wed, 23 Jun 1999 13:40:14 -0400
Message-ID: <37711BFE.1E6EEA3C@solipsys.com> (raw)
References: <377103C7.D695CB9E@goldwiretech.com>



Robin Whitworth wrote:

> I'm having trouble inserting binary data into a column of
> type bytea using a dynamic INSERT. The trouble seems to be if the
> data contains the values 0x5C (ASCII backslash) or 0x27 (ASCII
> singlequote). When I bind the input values for these I'm using
> SQL_C_BINARY. Shouldn't the data just be passed straight through,
> without any evaluation? Is there something special I need to
> do to make this work (or is this a bug?)
>

Sounds like a bug.   You should be able to see exactly what is being
sent to the backend by using the driver's log feature.   Could you send
that logfile which shows the error.

Byron





view thread (3+ messages)  latest in thread

Message-ID: <37711BFE.1E6EEA3C@solipsys.com>
Permalink:  ../37711BFE.1E6EEA3C@solipsys.com/
Also on:    postgresql.org/message-id/37711BFE.1E6EEA3C@solipsys.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: byronn@solipsys.com, rwhit@goldwiretech.com
  Subject: Re: [INTERFACES] ODBC & bytea
  In-Reply-To: <37711BFE.1E6EEA3C@solipsys.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox