BUG #2603: SQLDescribeCol return values

From: "Reginaldo Martins" <regimartins(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #2603: SQLDescribeCol return values
Date: 2006-08-31 10:33:38
Message-ID: 200608311033.k7VAXc8g031364@wwwmaster.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs


The following bug has been logged online:

Bug reference: 2603
Logged by: Reginaldo Martins
Email address: regimartins(at)gmail(dot)com
PostgreSQL version: 8.1.4
Operating system: Windows XP Professional Edition
Description: SQLDescribeCol return values
Details:

Hi!

The ODBC driver is PostgreSQL Unicode 8.01.02.00 from 31 of Jan of 2006.

I'm developing in VC++ 6.0 and I use SQLDescribeCol to determine the type of
each field. When I have a field in a database table defined as CHAR(100) the
function gives me -8 as type value! Is this normal?
Plus, if I change to CHAR(255) it returns -10!!

this is the
9c8-c74 EXIT SQLDescribeCol with return code 0 (SQL_SUCCESS)
HSTMT 00C52DD0
UWORD 2
UCHAR * 0x0012E2D8 6] "f_name"
SWORD 50
SWORD * 0x0012E2D0 (6)
SWORD * 0x0012E41C (-8)
SQLULEN * 0x0012E2C8 (100)
SWORD * 0x0012E420 (0)
SWORD * 0x0012E2CC (1)

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Dave Page 2006-08-31 15:22:27 Re: BUG #2603: SQLDescribeCol return values
Previous Message Peter Eisentraut 2006-08-31 09:00:10 Re: BUG #2600: dblink compile with SSL missing libraries