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?
tel: 024-3888063 / 06-51855277
pgsql-odbc by date
|Next:||From: Amit Saha||Date: 2008-01-08 12:43:45|
|Subject: Regarding Connectivity|
|Previous:||From: FabijanicA||Date: 2008-01-03 18:44:51|
|Subject: Re: Linux Unicode character size|