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 357949FA5E9 for ; Tue, 1 Aug 2006 04:49:56 -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 87848-04 for ; Tue, 1 Aug 2006 04:49:46 -0300 (ADT) X-Greylist: delayed 00:32:47.001187 by SQLgrey- Received: from svr4.postgresql.org (svr4.postgresql.org [66.98.251.159]) by postgresql.org (Postfix) with ESMTP id 96DE19FB1C3 for ; Tue, 1 Aug 2006 04:49:46 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.3 Received: from b.mx.secunet.com (b.mx.secunet.com [213.68.205.162]) by svr4.postgresql.org (Postfix) with ESMTP id 381FF5AF039 for ; Tue, 1 Aug 2006 07:16:58 +0000 (GMT) Received: from localhost (localhost [127.0.0.1]) by b.mx.secunet.com (Postfix) with ESMTP id 8529C1287 for ; Tue, 1 Aug 2006 09:16:27 +0200 (CEST) Received: from mail-srv1.secumail.de (unknown [10.53.40.200]) by b.mx.secunet.com (Postfix) with ESMTP id 1DDC8108D for ; Tue, 1 Aug 2006 09:16:27 +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 09:16:51 +0200 From: "Nardmann, Heiko" Reply-To: "Nardmann, Heiko" Organization: secunet Security Networks AG To: pgsql-odbc@postgresql.org Subject: usage of option ByteaAsLongVarBinary? Date: Tue, 1 Aug 2006 09:16:50 +0200 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2444461.UjaZG4ycZk"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200608010916.51191.heiko.nardmann@secunet.com> X-OriginalArrivalTime: 01 Aug 2006 07:16:51.0606 (UTC) FILETIME=[75D1EB60:01C6B53A] X-Virus-Scanned: by secunet X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200608/2 X-Sequence-Number: 7966 --nextPart2444461.UjaZG4ycZk Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 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=20 BYTEA. Examining pgtypes.c I have seen that seems to be possible if the=20 bytea_as_longvarbinary member of the connection structure is set. Now ... I= =20 am not sure how to set this. I have thought that this would be possible by= =20 setting "ByteaAsLongVarBinary=3D1" inside of the odbc.ini. But without luck= =2E=20 Once again I had a look at the sources - then I did not find any other way = to=20 set it than setting it via the specified Windows GUI. Since I do use Linux= =20 what is my way to set it? Do I have to go via the ODBC HDBC handle? Any=20 examples for this? Thanks in advance! =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 --nextPart2444461.UjaZG4ycZk Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEzv/jpm53PRScYygRAvAhAJ93Da3SZy2JMzA8Mw6zTmMIqzeyQQCg2J45 YM2rwdrh8F3m0J6got2N3Zk= =GhBg -----END PGP SIGNATURE----- --nextPart2444461.UjaZG4ycZk--