Re: Column types via ODBC interface

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Matt Goodall <mgg(at)isotek(dot)co(dot)uk>
Cc: pgsql-general <pgsql-general(at)postgresql(dot)org>
Subject: Re: Column types via ODBC interface
Date: 2000-06-08 01:49:51
Message-ID: 13881.960428991@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Matt Goodall <mgg(at)isotek(dot)co(dot)uk> writes:
> f10 decimal(9,2) SQL_VARCHAR, 254 SQL_DECIMAL, 9
> f11 numeric(9,2) SQL_VARCHAR, 254 SQL_DECIMAL, 9

The 6.5 ODBC driver doesn't know about type numeric, so it returns its
default assumption, which is varchar as above. The 7.0 version knows
about numeric, however.

The SQL type returned for "bool" appears to be a user-settable option.

The choices made for floating types look reasonably plausible.
If you think they're wrong, you'll need to argue why, not just
assert that you think they are. It's easy enough to change the
ODBC driver's SQL type <=> Postgres type mapping if there's a
better definition than what we're using...

regards, tom lane

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Dryden 2000-06-08 02:56:10 Re: Postgresql
Previous Message Tom Lane 2000-06-07 23:35:14 Re: make us of old database.