From: Scot Loach <sloach@sandvine.com>
To: Dave Page <dpage@vale-housing.co.uk>
To: Anoop Kumar <anoopk@pervasive-postgres.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: changed behavior in libpq odbc driver
Date: Wed, 31 Aug 2005 09:46:57 -0400
Message-ID: <71837C040963F748B9B94E123A289678664D91@mailserver.sandvine.com> (raw)
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
> -----Original Message-----
> From: Scot Loach [mailto:sloach@sandvine.com]
> 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
>
> That didn't fix it, it still returns HY000.
>
> This is the error message that comes back:
>
> 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 = 0x003B14B8, InfoType = SQL_DBMS_VER=18, InfoValuePtr
= 0x000A73A0, BufferLength = 600, StringLengthPtr = 0x000ADFD8,
Information Value Type = SQL_C_WCHAR=-8
Return: SQL_SUCCESS=0
Out: *InfoValuePtr =
"08.01.0004 PostgreSQL 8.0.3 on i686-pc-mingw32, co...",
*StringLengthPtr = 173
SQLExecDirect:
In:
Statementhandle = 0x003B16C0, StatementText = "SELECT version()",
Statementlength = 16
Return: SQL_ERROR=-1
stmt: szSqlState = "08S01",
*pfNativeError = 27, *pcbErrorMsg = 169, *ColumnNumber = -2, *RowNumber
= -2
MessageText = "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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: sloach@sandvine.com, dpage@vale-housing.co.uk, anoopk@pervasive-postgres.com
Subject: Re: changed behavior in libpq odbc driver
In-Reply-To: <71837C040963F748B9B94E123A289678664D91@mailserver.sandvine.com>
References: <71837C040963F748B9B94E123A289678664D91@mailserver.sandvine.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox