Skip site navigation (1) Skip section navigation (2)

Re: possible ODBC bug with '-infinity'

From: Richard Broersma Jr <rabroersma(at)yahoo(dot)com>
To: Postgresql ODBC List <pgsql-odbc(at)postgresql(dot)org>, Andrei Kovalevski <andyk(at)commandprompt(dot)com>
Subject: Re: possible ODBC bug with '-infinity'
Date: 2007-12-03 15:37:00
Message-ID: 806471.5688.qm@web31811.mail.mud.yahoo.com (view raw or flat)
Thread:
Lists: pgsql-odbc
--- On Mon, 12/3/07, Andrei Kovalevski <andyk(at)commandprompt(dot)com> wrote:

> Are you sure these values are equal? Try this in PgAdmin:
> 
> create table t (t timestamp);
> insert into t values ('-infinity');
> insert into t values ('infinity');
> insert into t values ('9999-12-31 23:59:59');
> insert into t values ('5874897-12-31 23:59:59');
> insert into t values ('5874897-12-31
> 23:59:59.999999999');
> --insert into t values ('5874898-01-01 00:00:00');
> select t::date, t::time, t::timestamp, t::varchar from t;

Now the real question is, "What does and ODBC client do with these value?".

Also, don't forget to include values for -infinity and other timestamps that are smaller than what the client side application can display.

In response to

Responses

pgsql-odbc by date

Next:From: Greg CocksDate: 2007-12-03 17:42:51
Subject: Re: Can't get MS Access via ODBC (or MapServer) to 'see' the data unless the user is a 'super user'...
Previous:From: Andrei KovalevskiDate: 2007-12-03 14:49:20
Subject: Re: possible ODBC bug with '-infinity'

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group