ODBC & bytea

From: Robin Whitworth <rwhit(at)goldwiretech(dot)com>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: ODBC & bytea
Date: 1999-06-23 15:56:55
Message-ID: 377103C7.D695CB9E@goldwiretech.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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?)

Platform: linux, x86
PostgreSQL version: 6.4.2 (installed from the linux RPM's)
ODBC driver: the one included with the 6.4.2 RPM's (I haven't
found the version of this clearly labelled anywhere).
-rwhit

.........................................................
Robin Whitworth Gold Wire Technology Inc.
rwhit(at)goldwiretech(dot)com P.O. Box 103
617.876.9473x1603 Belmont, MA 02478-0001

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Constantin Teodorescu 1999-06-23 16:07:44 Re: [INTERFACES] Trying to get started?
Previous Message Collin F. Lynch 1999-06-23 15:33:49 Images