Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id E58F72E0091 for ; Thu, 28 Feb 2008 18:59:46 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 10337-02 for ; Thu, 28 Feb 2008 18:59:44 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from gw.blueface.com (unknown [213.200.94.184]) by postgresql.org (Postfix) with ESMTP id 579522E0080 for ; Thu, 28 Feb 2008 18:59:40 -0400 (AST) Received: (qmail 27925 invoked by uid 20008); 28 Feb 2008 22:59:38 -0000 Received: from 89.100.128.76 (bruce.mcalister@blueface.ie@89.100.128.76) by bfiemail (envelope-from , uid 0) with qmail-scanner-2.01st Received: from unknown (HELO ?192.168.10.2?) (bruce.mcalister@blueface.ie@89.100.128.76) by gw.blueface.com with ESMTPA; 28 Feb 2008 22:59:34 -0000 Message-ID: <47C73CB5.3010806@blueface.ie> Date: Thu, 28 Feb 2008 22:59:01 +0000 From: Bruce McAlister Reply-To: bruce.mcalister@blueface.ie Organization: Blueface Ireland Ltd User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) MIME-Version: 1.0 To: "Luiz K. Matsumura" CC: pgsql-odbc@postgresql.org Subject: Re: ODBC Version supporting specif databases? References: <47BEF6AE.7010004@blueface.ie> <47C66751.2060907@blueface.ie> <47C71E7B.9080207@planit.com.br> In-Reply-To: <47C71E7B.9080207@planit.com.br> X-Enigmail-Version: 0.95.6 Content-Type: multipart/mixed; boundary="------------020006020404060103020703" X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=2.254 tagged_above=0 required=5 tests=AWL=-0.445, RCVD_NUMERIC_HELO=2.599, RDNS_NONE=0.1 X-Spam-Level: ** X-Archive-Number: 200802/62 X-Sequence-Number: 9414 This is a multi-part message in MIME format. --------------020006020404060103020703 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Luiz, I have attached the trace.log and there seems to be an issue in SQLAllocHandle.c. I tried to enable commlog and debug but i cant seem to find the files that they are meant to generate. Just to verify, do I add the following parameters to the dsn in odbc.ini? Debug = 1 CommLog = 1 Thanks Bruce Luiz K. Matsumura wrote: > Hi Bruce > > I guess that you need first enable Mylog and commlog and send both files > to the list. > This will help to trace the source code for errors. > > > Bruce McAlister wrote: >> Hi All, >> >> Does anyone have any ideas/tips on how I could further debug this >> problem? >> >> Thanks >> Bruce >> >> Bruce McAlister wrote: >>> Hi All, >>> >>> I am having connection issues with the 08.03.0100 version of the ODBC >>> driver. >>> >>> What happens is that when I attempt to connect to an 8.2.6 PostgreSQL >>> database, using the 08.3.0100 ODBC driver then i get an error >>> connecting during authentication as follows: >>> >>> ------------------------------------------------------------------------- >>> >>> [28000][unixODBC]Communication error during authentication; >>> Error while reading from the socket. >>> [ISQL]ERROR: Could not SQLConnect >>> ------------------------------------------------------------------------- >>> >>> >>> However, if I use the 08.01.0200 version to connect to the same DSN, >>> I am able to successfully connect? >>> >>> Is there a specific version of the ODBC driver that supports a >>> specific version of the PostgreSQL database. >>> >>> The way the above two ODBC drivers were built are as follows: >>> >>> OS: Solaris 10 Update 3 >>> ODBC Manager : unixODBC v1.2.12 >>> >>> I'm not too sure which version of the libpq library was used, but I >>> know for certain that Solaris 10 Update 3 comes with a Sun built >>> version of PostgreSQL 8.1, the one on the system I am trying to build >>> on is version 8.1.10. >>> >>> Am I doing something wrong or are the versions of the odbc driver >>> just not compatible with the versions of libpq that i am using to >>> build with, and thus, unable to connect to the database, or, is it >>> something completely different. >>> >>> If you need any additional info, please dont hesitate to ask. >>> >>> Thanks >>> Bruce >> > -- +-------------------------------------------------------+ | Bruce McAlister Blueface Ltd | | http://www.blueface.ie | +-------------------------------------------------------+ --------------020006020404060103020703 Content-Type: text/plain; name="trace.log" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="trace.log" [ODBC][7248][__handles.c][447] Exit:[SQL_SUCCESS] Environment = 8067ac0 [ODBC][7248][SQLAllocHandle.c][358] Entry: Handle Type = 2 Input Handle = 8067ac0 [ODBC][7248][SQLAllocHandle.c][476] Exit:[SQL_SUCCESS] Output Handle = 80680e8 [ODBC][7248][SQLConnect.c][3586] Entry: Connection = 80680e8 Server Name = [blueface-services][length = 17 (SQL_NTS)] User Name = [NULL] Authentication = [NULL] UNICODE Using encoding ASCII 'ISO8859-1' and UNICODE 'UCS-2LE' [ODBC][7248][SQLAllocHandle.c][331]Error: SQL_INVALID_HANDLE [ODBC][7248][SQLConnect.c][1570]Error: IM005 [ODBC][7248][SQLError.c][476]Error: SQL_INVALID_HANDLE [ODBC][7248][SQLError.c][424] Entry: Connection = 80680e8 SQLState = 8047a00 Native = 80479fc Message Text = 8047a10 Buffer Length = 500 Text Len Ptr = 80479fa [ODBC][7248][SQLError.c][461] Exit:[SQL_SUCCESS] SQLState = IM005 Native = 80479fc -> 0 Message Text = [[unixODBC][Driver Manager]Driver's SQLAllocHandle on SQL_HANDLE_DBC failed] [ODBC][7248][SQLError.c][424] Entry: Connection = 80680e8 SQLState = 8047a00 Native = 80479fc Message Text = 8047a10 Buffer Length = 500 Text Len Ptr = 80479fa [ODBC][7248][SQLError.c][461] Exit:[SQL_NO_DATA] [ODBC][7248][SQLError.c][504] Entry: Environment = 8067ac0 SQLState = 8047a00 Native = 80479fc Message Text = 8047a10 Buffer Length = 500 Text Len Ptr = 80479fa [ODBC][7248][SQLError.c][541] Exit:[SQL_NO_DATA] [ODBC][7248][SQLFreeHandle.c][273] Entry: Handle Type = 2 Input Handle = 80680e8 [ODBC][7248][SQLFreeHandle.c][188]Error: SQL_INVALID_HANDLE [ODBC][7248][SQLFreeHandle.c][324] Exit:[SQL_SUCCESS] [ODBC][7248][SQLFreeHandle.c][206] Entry: Handle Type = 1 Input Handle = 8067ac0 --------------020006020404060103020703--