Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 7D013476812 for ; Thu, 2 Jan 2003 09:37:27 -0500 (EST) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 9C47C476789 for ; Thu, 2 Jan 2003 09:35:54 -0500 (EST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.6/8.12.6) with ESMTP id h02EZwd0019981; Thu, 2 Jan 2003 09:35:58 -0500 (EST) To: "Dave Page" Cc: pgsql-odbc@postgresql.org, "Didier Moens" Subject: Re: SQLGetInfo Bug In-reply-to: <03AF4E498C591348A42FC93DEA9661B88546@mail.vale-housing.co.uk> References: <03AF4E498C591348A42FC93DEA9661B88546@mail.vale-housing.co.uk> Comments: In-reply-to "Dave Page" message dated "Thu, 02 Jan 2003 12:50:07 +0000" Date: Thu, 02 Jan 2003 09:35:58 -0500 Message-ID: <19980.1041518158@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200301/3 X-Sequence-Number: 2502 "Dave Page" 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