Received: from localhost (unknown [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id DAAA72E0217 for ; Mon, 3 Dec 2007 11:37:05 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 51349-09 for ; Mon, 3 Dec 2007 11:37:02 -0400 (AST) Received: from web31811.mail.mud.yahoo.com (web31811.mail.mud.yahoo.com [68.142.207.74]) by postgresql.org (Postfix) with SMTP id E9E092E020C for ; Mon, 3 Dec 2007 11:37:02 -0400 (AST) Received: (qmail 6613 invoked by uid 60001); 3 Dec 2007 15:37:00 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=OS2MpP0VF6ihMIgwvkQhcXOiJEn4DeaUutl9IvPhmHHFYPMFoTn+qlYEjogDitwcS1IgylGlPiRX5v7q+KB2vQ0POSku8lQ8sv8eJhikj9gM87kzFr0QsmlLvnsT2inTb3Aw7wCBZ9wCM33v4fSL26VC4TkskG5B7VvY9+Lj0/Q=; X-YMail-OSG: 8CeoicoVM1lN_1v0ukV.vwM.8uh.9avyA_eSF4KgPWjojMqT_DnHwxnCMCAGHueqtu1ERrKeiQ-- Received: from [12.180.237.138] by web31811.mail.mud.yahoo.com via HTTP; Mon, 03 Dec 2007 07:37:00 PST X-Mailer: YahooMailWebService/0.7.160 Date: Mon, 3 Dec 2007 07:37:00 -0800 (PST) From: Richard Broersma Jr Subject: Re: possible ODBC bug with '-infinity' To: Postgresql ODBC List , Andrei Kovalevski In-Reply-To: <47541770.4070206@commandprompt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <806471.5688.qm@web31811.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200712/8 X-Sequence-Number: 9286 --- On Mon, 12/3/07, Andrei Kovalevski 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.