X-Original-To: pgsql-odbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5C87D9FB2E6 for ; Tue, 1 Aug 2006 07:49:02 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 23817-10 for ; Tue, 1 Aug 2006 07:48:56 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from b.mx.secunet.com (b.mx.secunet.com [213.68.205.162]) by postgresql.org (Postfix) with ESMTP id 902159FB1D3 for ; Tue, 1 Aug 2006 07:48:56 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by b.mx.secunet.com (Postfix) with ESMTP id 09AED12AC for ; Tue, 1 Aug 2006 12:48:30 +0200 (CEST) Received: from mail-srv1.secumail.de (unknown [10.53.40.200]) by b.mx.secunet.com (Postfix) with ESMTP id 59DCC119C for ; Tue, 1 Aug 2006 12:48:28 +0200 (CEST) Received: from sn-pc195.si.secunet.de ([10.151.6.135]) by mail-srv1.secumail.de with Microsoft SMTPSVC(6.0.3790.1830); Tue, 1 Aug 2006 12:48:53 +0200 From: "Nardmann, Heiko" Reply-To: "Nardmann, Heiko" Organization: secunet Security Networks AG To: pgsql-odbc@postgresql.org Subject: Re: usage of option ByteaAsLongVarBinary? Date: Tue, 1 Aug 2006 12:48:52 +0200 User-Agent: KMail/1.9.1 References: <200608010916.51191.heiko.nardmann@secunet.com> In-Reply-To: <200608010916.51191.heiko.nardmann@secunet.com> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1929830.DN2XY3pldQ"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200608011248.52784.heiko.nardmann@secunet.com> X-OriginalArrivalTime: 01 Aug 2006 10:48:53.0091 (UTC) FILETIME=[146A7B30:01C6B558] X-Virus-Scanned: by secunet X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.221 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200608/7 X-Sequence-Number: 7971 --nextPart1929830.DN2XY3pldQ Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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_LOGVARBINA= RY > 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=3D1" inside of the odbc.ini. But without lu= ck. > 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 t= o=20 '-1' in connection.c inside of CC_conninfo_init(). Does that mean that by=20 default this option is activated? =2D-=20 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 --nextPart1929830.DN2XY3pldQ Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEzzGUpm53PRScYygRAgBcAJ9hxajwLKMOUyM6lIWDcXIV5bFqoQCdEz04 sPWk1fdhPi/a3pOZBbYnANg= =VB1g -----END PGP SIGNATURE----- --nextPart1929830.DN2XY3pldQ--