From: | Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp> |
---|---|
To: | Andy Hallam <ahm(at)exel(dot)co(dot)uk> |
Subject: | Re: PsqlODBC and SQLDescribeCol |
Date: | 2001-10-30 04:10:33 |
Message-ID: | 3BDE2839.2735D33F@tpf.co.jp |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Ren Weili | 2001-10-30 04:39:00 | Re: resend: Chinese sort order problem |
Previous Message | Paul Tomblin | 2001-10-30 02:30:59 | Re: Differential Backups |