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 14:46:04
Message-ID: 15986.960475564@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:
> Sorry if I've missed something obvious in the docs but is that a
> postgres setting or an odbc driver manager setting?

odbc side.

> I was expecing that to mean that float4/8 would map to an ODBC SQL_FLOAT
> and float8 would map to either SQL_REAL or SQL_DOUBLE.

The code in odbc's pgtypes.c maps float4 to SQL_REAL and float8 to
SQL_FLOAT. Perhaps that's backward, or perhaps not; do the ODBC specs
say anything about the expected precision associated with SQL_REAL
or SQL_FLOAT?

regards, tom lane

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2000-06-08 14:53:49 Re: Composite Types
Previous Message John Daniels 2000-06-08 14:45:48 Re: FreeBSD PostgreSQL7 port and v7.0.2