From: Nardmann, Heiko <heiko.nardmann@secunet.com>
To: pgsql-odbc@postgresql.org
Subject: Re: usage of option ByteaAsLongVarBinary?
Date: Tue, 1 Aug 2006 12:48:52 +0200
Message-ID: <200608011248.52784.heiko.nardmann@secunet.com> (raw)
In-Reply-To: <200608010916.51191.heiko.nardmann@secunet.com>
References: <200608010916.51191.heiko.nardmann@secunet.com>
Am Dienstag, 1. August 2006 09:16 schrieb Nardmann, Heiko:
> Hi,
>
> first to say that I am quite new to the ODBC interface ...
>
> Now my question:
>
> I want the ODBC driver (Linux/unixODBC) to map an incoming SQL_LOGVARBINARY
> to BYTEA. Examining pgtypes.c I have seen that seems to be possible if the
> bytea_as_longvarbinary member of the connection structure is set. Now ... I
> am not sure how to set this. I have thought that this would be possible by
> setting "ByteaAsLongVarBinary=1" inside of the odbc.ini. But without luck.
> Once again I had a look at the sources - then I did not find any other way
> to set it than setting it via the specified Windows GUI. Since I do use
> Linux what is my way to set it? Do I have to go via the ODBC HDBC handle?
> Any examples for this?
>
> Thanks in advance!
One additional question: I saw that bytea_as_longvarbinary is initialized to
'-1' in connection.c inside of CC_conninfo_init(). Does that mean that by
default this option is activated?
--
Heiko Nardmann (Dipl.-Ing. Technische Informatik)
secunet Security Networks AG - Sicherheit in Netzwerken (www.secunet.de),
Weidenauer Str. 223-225, D-57076 Siegen
Tel. : +49 271 48950-13, Fax : +49 271 48950-50
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: heiko.nardmann@secunet.com
Subject: Re: usage of option ByteaAsLongVarBinary?
In-Reply-To: <200608011248.52784.heiko.nardmann@secunet.com>
References: <200608010916.51191.heiko.nardmann@secunet.com> <200608011248.52784.heiko.nardmann@secunet.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