pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Dave Page <dpage@vale-housing.co.uk>
Cc: pgsql-odbc@postgresql.org
Cc: Didier Moens <moensd@xs4all.be>
Subject: Re: SQLGetInfo Bug
Date: Thu, 02 Jan 2003 09:35:58 -0500
Message-ID: <19980.1041518158@sss.pgh.pa.us> (raw)
In-Reply-To: <03AF4E498C591348A42FC93DEA9661B88546@mail.vale-housing.co.uk>
References: <03AF4E498C591348A42FC93DEA9661B88546@mail.vale-housing.co.uk>

"Dave Page" <dpage@vale-housing.co.uk> writes:
> snprintf(tmp, sizeof(tmp) - 1, "%s %s", POSTGRESDRIVERVERSION, conn->pg_version);

> but somewhere along the way garbage is getting appended back on the string returned:

> [328][SQLGetInfo][328]PGAPI_GetInfo: entering...fInfoType=18
> [328]PGAPI_GetInfo: p='07.02.0005 PostgreSQL 7.3 on i386-redhat-linux-gnu, compiled by GCC i386-redhat-linux-gcc (GCC) 3.2.1 20021207 (Red Hat Linux 8wãF¸8Ù', len=0, value=0, cbMax=0

> I can't see what the heck I've done wrong here. Any ideas?

I think the error is elsewhere, and that the garbage is already present
in conn->pg_version.

			regards, tom lane



view thread (5+ messages)  latest in thread

Message-ID: <19980.1041518158@sss.pgh.pa.us>
Permalink:  ../19980.1041518158@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/19980.1041518158@sss.pgh.pa.us

 · 

reply

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: tgl@sss.pgh.pa.us, dpage@vale-housing.co.uk, moensd@xs4all.be
  Subject: Re: SQLGetInfo Bug
  In-Reply-To: <19980.1041518158@sss.pgh.pa.us>
  References: <03AF4E498C591348A42FC93DEA9661B88546@mail.vale-housing.co.uk> <19980.1041518158@sss.pgh.pa.us>

* 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