pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
numeric type issue
4+ messages / 2 participants
[nested] [flat]

* numeric type issue
@ 2010-02-12 17:51  Valdas Rutkauskas <vrutkauskas@techniumconsulting.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Valdas Rutkauskas @ 2010-02-12 17:51 UTC (permalink / raw)
  To: pgsql-odbc

Hi,

I'm trying to migrate postgres 7.4  to postgres 8.4.2-1.  Everything seems to work fine, but fields in database with NUMERIC type returning wrong values, but in the tables they  are correct.

 For example:  I have column defined like this:
charge numeric(7,2) DEFAULT 0 NOT NULL,NOT NULL  with value 6.67.

If I use psqlODBC version 08.04.0100 return value would be 6.00, but if I use driver postgresql-odbc-08.03.0400-1PGDG.rhel5 return value is 6.67 which is how it suppose to be.

Does anybody know any issues with version 08.04.0100 regarding numeric type ? .  Would it be safe to use postgresql-odbc-08.03.0400-1PGDG.rhel5 driver with 8.4.2-1 postgres?


Thanks
-Valdas

^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: numeric type issue
@ 2010-02-15 23:49  Hiroshi Inoue <inoue@tpf.co.jp>
  parent: Valdas Rutkauskas <vrutkauskas@techniumconsulting.com>
  0 siblings, 1 reply; 4+ messages in thread

From: Hiroshi Inoue @ 2010-02-15 23:49 UTC (permalink / raw)
  To: Valdas Rutkauskas <vrutkauskas@techniumconsulting.com>; +Cc: pgsql-odbc

Valdas Rutkauskas wrote:
> Hi,
> 
>  
> 
> I'm trying to migrate postgres 7.4  to postgres 8.4.2-1.  Everything 
> seems to work fine, but fields in database with NUMERIC type returning 
> wrong values, but in the tables they  are correct.
> 
>  
> 
>  For example:  I have column defined like this:
> 
> charge numeric(7,2) DEFAULT 0 NOT NULL,NOT NULL  with value 6.67.
> 
>  
> 
> If I use psqlODBC version 08.04.0100 return value would be 6.00, but if 
> I use driver postgresql-odbc-08.03.0400-1PGDG.rhel5 return value is 6.67 
> which is how it suppose to be.
> 
>  
> 
> Does anybody know any issues with version 08.04.0100 regarding numeric 
> type ? 

This bug was fixed in 8.4.0200.

regards,
Hiroshi Inoue




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: numeric type issue
@ 2010-02-16 17:03  Valdas Rutkauskas <vrutkauskas@techniumconsulting.com>
  parent: Hiroshi Inoue <inoue@tpf.co.jp>
  0 siblings, 1 reply; 4+ messages in thread

From: Valdas Rutkauskas @ 2010-02-16 17:03 UTC (permalink / raw)
  To: Hiroshi Inoue <inoue@tpf.co.jp>; +Cc: pgsql-odbc

Thanks!

Do you know if this bug is only for *nix version ? We using this driver in windows and do not see isue there.



-----Original Message-----
From: Hiroshi Inoue [mailto:inoue@tpf.co.jp] 
Sent: Monday, February 15, 2010 6:49 PM
To: Valdas Rutkauskas
Cc: pgsql-odbc@postgresql.org
Subject: Re: [ODBC] numeric type issue

Valdas Rutkauskas wrote:
> Hi,
> 
>  
> 
> I'm trying to migrate postgres 7.4  to postgres 8.4.2-1.  Everything 
> seems to work fine, but fields in database with NUMERIC type returning 
> wrong values, but in the tables they  are correct.
> 
>  
> 
>  For example:  I have column defined like this:
> 
> charge numeric(7,2) DEFAULT 0 NOT NULL,NOT NULL  with value 6.67.
> 
>  
> 
> If I use psqlODBC version 08.04.0100 return value would be 6.00, but if 
> I use driver postgresql-odbc-08.03.0400-1PGDG.rhel5 return value is 6.67 
> which is how it suppose to be.
> 
>  
> 
> Does anybody know any issues with version 08.04.0100 regarding numeric 
> type ? 

This bug was fixed in 8.4.0200.

regards,
Hiroshi Inoue




^ permalink  raw  reply  [nested|flat] 4+ messages in thread

* Re: numeric type issue
@ 2010-02-17 03:43  Hiroshi Inoue <inoue@tpf.co.jp>
  parent: Valdas Rutkauskas <vrutkauskas@techniumconsulting.com>
  0 siblings, 0 replies; 4+ messages in thread

From: Hiroshi Inoue @ 2010-02-17 03:43 UTC (permalink / raw)
  To: Valdas Rutkauskas <vrutkauskas@techniumconsulting.com>; +Cc: pgsql-odbc

Valdas Rutkauskas wrote:
> Thanks!
> 
> Do you know if this bug is only for *nix version ? We using this driver in windows and do not see isue there.

This bug doesn't exist in Windows version.

regards,
Hiroshi Inoue

> -----Original Message-----
> From: Hiroshi Inoue [mailto:inoue@tpf.co.jp] 
> Sent: Monday, February 15, 2010 6:49 PM
> To: Valdas Rutkauskas
> Cc: pgsql-odbc@postgresql.org
> Subject: Re: [ODBC] numeric type issue
> 
> Valdas Rutkauskas wrote:
>> Hi,
>>
>>  
>>
>> I'm trying to migrate postgres 7.4  to postgres 8.4.2-1.  Everything 
>> seems to work fine, but fields in database with NUMERIC type returning 
>> wrong values, but in the tables they  are correct.
>>
>>  
>>
>>  For example:  I have column defined like this:
>>
>> charge numeric(7,2) DEFAULT 0 NOT NULL,NOT NULL  with value 6.67.
>>
>>  
>>
>> If I use psqlODBC version 08.04.0100 return value would be 6.00, but if 
>> I use driver postgresql-odbc-08.03.0400-1PGDG.rhel5 return value is 6.67 
>> which is how it suppose to be.
>>
>>  
>>
>> Does anybody know any issues with version 08.04.0100 regarding numeric 
>> type ? 
> 
> This bug was fixed in 8.4.0200.
> 
> regards,
> Hiroshi Inoue




^ permalink  raw  reply  [nested|flat] 4+ messages in thread


end of thread, other threads:[~2010-02-17 03:43 UTC | newest]

Thread overview: 4+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2010-02-12 17:51 numeric type issue Valdas Rutkauskas <vrutkauskas@techniumconsulting.com>
2010-02-15 23:49 ` Hiroshi Inoue <inoue@tpf.co.jp>
2010-02-16 17:03   ` Valdas Rutkauskas <vrutkauskas@techniumconsulting.com>
2010-02-17 03:43     ` Hiroshi Inoue <inoue@tpf.co.jp>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox