Re: ODBC Error while selecting a numeric data field

From: "Tom Ince" <tom(dot)ince(at)netzero(dot)net>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: ODBC Error while selecting a numeric data field
Date: 2002-07-12 17:47:38
Message-ID: _CEX8.812$ak5.680@nwrddc01.gnilink.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

I have done a test and created the table with the field being a float
instead
of numeric and everything works fine.

Any help please???

"Tom Ince" <tom(dot)ince(at)netzero(dot)net> wrote in message
news:OLCX8(dot)718$ak5(dot)93(at)nwrddc01(dot)gnilink(dot)net(dot)(dot)(dot)
> I have tried PostgreSQL version 7.1.3 with iODBC-3.0.5
>
> and
>
> PostgreSQL version 7.2.1 with iODBC-3.0.6
>
> and in both cases I get an error when attempting to do a select on a field
> with the numeric data type.
>
> Using the psql program I do the following :
>
> CREATE TABLE test (lat numeric(9,6) );
> INSERT INTO test VALUES (12.23);
> SELECT * FROM test;
>
> When I do the select in the psql program I get :
>
> lat
> ----------
> 12.230000
> (1 row)
>
>
> Now, I have an application attempting to perform the same SELECT statement
> using the iODBC drivers SDK.
> When calling SQLFetch with a SELECT statement attempting to pull data from
a
> field of type NUMERIC, I get
> the error :
>
> 07006
> Received an unsupported type from Postgres.
>
>
> Please help....
>
>
>

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Joe Conway 2002-07-12 17:47:54 Re: [GENERAL] workaround for lack of REPLACE() function
Previous Message Elaine Lindelef 2002-07-12 17:38:05 Re: MySQL vs. PostgreSQL