From: Joost Kraaijeveld <J.Kraaijeveld@Askesis.nl>
To: pgsql-odbc@postgresql.org
Subject: SQLDescribeCol returns wrong columnsize for macaddress ?
Date: Mon, 07 Jan 2008 08:31:24 +0100
Message-ID: <1199691085.4503.26.camel@panoramix.askesis.nl> (raw)
Hi,
It appears that SQLDescribeCol returns the wrong column size for the
macaddress datatype: it returns 6. Using that size in SQLBindCol results
in a SQLFetch error of SQL_SUCCESS_WITH_INFO and the message "Fetched
item was truncated". Changing the size to 18 in SQLBindCol works OK.
Should the return value of SQLDescribeCol indeed be 18 (the length of
the text string "00:00:00:00:00:00" including a '\0') instead of 6?
If not, is there a way to get the exact type of such a column to handle
this case: SQLDescribeCol seems to return SQL_VARCHAR as type so I
cannot differentiate between a real SQL_VARCHAR and a macaddress?
TIA
--
Groeten,
Joost Kraaijeveld
Askesis B.V.
Molukkenstraat 14
6524NB Nijmegen
tel: 024-3888063 / 06-51855277
fax: 024-3608416
web: www.askesis.nl
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: J.Kraaijeveld@Askesis.nl
Subject: Re: SQLDescribeCol returns wrong columnsize for macaddress ?
In-Reply-To: <1199691085.4503.26.camel@panoramix.askesis.nl>
References: <1199691085.4503.26.camel@panoramix.askesis.nl>
* 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