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 04AC39FB2E6 for ; Tue, 1 Aug 2006 07:33:59 -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 23313-07 for ; Tue, 1 Aug 2006 07:33:48 -0300 (ADT) X-Greylist: delayed 03:16:50.515036 by SQLgrey- Received: from b.mx.secunet.com (b.mx.secunet.com [213.68.205.162]) by postgresql.org (Postfix) with ESMTP id 5A5B59FB1D3 for ; Tue, 1 Aug 2006 07:33:48 -0300 (ADT) Received: from localhost (localhost [127.0.0.1]) by b.mx.secunet.com (Postfix) with ESMTP id 1973E1278; Tue, 1 Aug 2006 12:33:22 +0200 (CEST) Received: from mail-srv1.secumail.de (unknown [10.53.40.200]) by b.mx.secunet.com (Postfix) with ESMTP id D853E119C; Tue, 1 Aug 2006 12:33:19 +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:33:44 +0200 From: "Nardmann, Heiko" Reply-To: "Nardmann, Heiko" Organization: secunet Security Networks AG To: Ludek Finstrle Subject: Re: usage of option ByteaAsLongVarBinary? Date: Tue, 1 Aug 2006 12:33:43 +0200 User-Agent: KMail/1.9.1 Cc: pgsql-odbc@postgresql.org References: <200608010916.51191.heiko.nardmann@secunet.com> <20060801100514.GA10448@soptik.pzkagis.cz> In-Reply-To: <20060801100514.GA10448@soptik.pzkagis.cz> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart23568746.4Fu1tHJ8oU"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200608011233.44409.heiko.nardmann@secunet.com> X-OriginalArrivalTime: 01 Aug 2006 10:33:44.0642 (UTC) FILETIME=[F6F02A20:01C6B555] X-Virus-Scanned: by secunet X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.442 tagged_above=0 required=5 tests=AWL, URI_NOVOWEL X-Spam-Level: X-Archive-Number: 200608/6 X-Sequence-Number: 7970 --nextPart23568746.4Fu1tHJ8oU Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Am Dienstag, 1. August 2006 12:05 schrieb Ludek Finstrle: > > 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 witho= ut > > luck. > > Yes. This is the right way. Do you have it at the right place in > odbc.ini? > Not sure about it; here my odbc.ini: [ODBC] Trace =3D 1 TraceFile =3D /tmp/unixodbc.trace.log debug=3D1 debugfile=3D/tmp/unixodbc.debug.log [test-db] Description =3D test-db driver=3D/usr/lib/unixODBC/libodbcpsql.so setup=3D/usr/lib/unixODBC/libodbcpsqlS.so trace=3D1 tracefile=3D/tmp/unixodbc.trace.log debug=3D1 debugfile=3D/tmp/unixodbc.debug.log commlog=3D1 database=3Dtest-db Servername=3D1.2.3.4 Port=3D5432 Username=3D ReadOnly=3D0 ByteaAsLongVarBinary=3D1 > > 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 > > I see this way (function calls): > PGAPI_DriverConnect > dconn_get_connect_attributes > dconn_get_attributes > copyAttributes > So do I have to use SQLDriverConnect() instead of SQLConnect() to have=20 PGAPI_DriverConnect() to be used? Thanks for your help. > > what is my way to set it? Do I have to go via the ODBC HDBC handle? Any > > examples for this? > > There is no such way. > > It could be useful to try enable the mylog output (Debug =3D 1 in odbc.in= i). > The mylog is placed in /tmp/mylog_*.log. > > BTW could you send us the odbc.ini to check it? > > Regards, > > Luf =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 --nextPart23568746.4Fu1tHJ8oU Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (GNU/Linux) iD8DBQBEzy4Ipm53PRScYygRAqgbAKCCESJUr5CnYIrfqqWAsRIhFXJwRQCbBzuq W3G4avaXfSuyOnsz/uB07G8= =p4Aq -----END PGP SIGNATURE----- --nextPart23568746.4Fu1tHJ8oU--