Re: PsqlODBC and SQLDescribeCol - Mailing list pgsql-general

From Hiroshi Inoue
Subject Re: PsqlODBC and SQLDescribeCol
Date
Msg-id 3BDE2839.2735D33F@tpf.co.jp
Whole thread Raw
List pgsql-general
Andy Hallam wrote:
>
> PostgreSQL - 7.1.3  (installed on Linux 2.4.2-2)
> PSQLODBC.DLL - 07.01.0007
> Visual C++ - 6.0
>
> SQLDescribeCol() does not return the correct meta data results.
>
> The seventh argument to SQLDescribeCol - SQLUINTEGER *ColumnSizePtr - should
> return the size of the column.
>
> SQLDescribeCol works fine under SQLSERVER, DB2 and ORACLE. i.e using the
> below schema I get 20 returned in ColumnSizePtr, but, under PostgreSQL I get
> 254 ??? - Also, I get 254 no matter what size I make mytable.mycolumn
>
> CREATE TABLE mytable
> (
>  mycolumn NCHAR VARYING (20)
> )
>
> If I change the mytable.mycolumn data type from NCHAR VARYING (20) ->
> CHARACTER (20) ColumnSizePtr returns 3. !!!

Hmm strange, I get 20 here.
Could you send me the mylog output ?
There's a driver option which enable/disables the mylog
output.

regards,
Hiroshi Inoue

pgsql-general by date:

Previous
From: "Dinesh Parikh"
Date:
Subject: Check Existence of temporary table in a session.
Next
From: Ren Weili
Date:
Subject: Re: resend: Chinese sort order problem