X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7ACC8D7708 for ; Wed, 31 Aug 2005 10:47:00 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 48160-04 for ; Wed, 31 Aug 2005 13:46:55 +0000 (GMT) Received: from mailserver.sandvine.com (sandvine.com [199.243.201.138]) by svr1.postgresql.org (Postfix) with ESMTP id A9DC6D6E3F for ; Wed, 31 Aug 2005 10:46:53 -0300 (ADT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6603.0 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Re: changed behavior in libpq odbc driver Date: Wed, 31 Aug 2005 09:46:57 -0400 Message-ID: <71837C040963F748B9B94E123A289678664D91@mailserver.sandvine.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [ODBC] changed behavior in libpq odbc driver Thread-Index: AcWmX6B1ojlaWTubQf+Ja4Cwz8uchQAAVJfgAbnhinAAOFmbAAAAtclQAAFHFvA= From: "Scot Loach" To: "Dave Page" , "Anoop Kumar" Cc: X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 required=5 tests=[none] X-Spam-Level: X-Archive-Number: 200508/246 X-Sequence-Number: 5885 My mistake, I tried it again and it does seem to be working now - I must = not have updated properly for my last compile. scot. -----Original Message----- From: Dave Page [mailto:dpage@vale-housing.co.uk] Sent: Wednesday, August 31, 2005 9:08 AM To: Scot Loach; Anoop Kumar Cc: pgsql-odbc@postgresql.org Subject: RE: [ODBC] changed behavior in libpq odbc driver =20 > -----Original Message----- > From: Scot Loach [mailto:sloach@sandvine.com]=20 > Sent: 31 August 2005 13:52 > To: Anoop Kumar > Cc: pgsql-odbc@postgresql.org; Dave Page > Subject: RE: [ODBC] changed behavior in libpq odbc driver >=20 > That didn't fix it, it still returns HY000. >=20 > This is the error message that comes back: >=20 > FATAL: terminating connection due to administrator command > server closed the connection unexpectedly > This probably means the server terminated abnormally Odd - it works for me: Successfully connected to DSN 'unicode'. SQLGetInfo: In: ConnectionHandle =3D 0x003B14B8, InfoType =3D SQL_DBMS_VER=3D18, = InfoValuePtr =3D 0x000A73A0, BufferLength =3D 600, StringLengthPtr =3D 0x000ADFD8,=20 =09 Information Value Type =3D SQL_C_WCHAR=3D-8 Return: SQL_SUCCESS=3D0 Out: *InfoValuePtr =3D "08.01.0004 PostgreSQL 8.0.3 on i686-pc-mingw32, co...", *StringLengthPtr =3D 173 SQLExecDirect: In: Statementhandle =3D 0x003B16C0, StatementText =3D "SELECT version()", Statementlength =3D 16 Return: SQL_ERROR=3D-1 stmt: szSqlState =3D "08S01", *pfNativeError =3D 27, *pcbErrorMsg =3D 169, *ColumnNumber =3D -2, = *RowNumber =3D -2 =09 MessageText =3D "Error while executing the query; server closed the connection unexpectedly This probably means the server terminated abnormally before or while processing the request." What steps are you using to repeat the failure at your end? I'm doing: 1) Open connection 2) Call SQLGetInfo and doubly confirm we're connected. 3) Stop the server. 4) Execute a query. Regards, Dave