Received: from localhost (unknown [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 27BA12E2F45 for ; Mon, 3 Dec 2007 09:25:49 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 00406-01-2 for ; Mon, 3 Dec 2007 09:25:36 -0400 (AST) Received: from web31809.mail.mud.yahoo.com (web31809.mail.mud.yahoo.com [68.142.207.72]) by postgresql.org (Postfix) with SMTP id F35002E2FEB for ; Mon, 3 Dec 2007 09:25:41 -0400 (AST) Received: (qmail 57395 invoked by uid 60001); 3 Dec 2007 13:25:40 -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:Cc:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=BtOx6168F0QA/poS3bWIVAczcVRBPVzCeYhXO5bsEI/F0dk5B4ChbxXXRfZnm08607xNcisz+TxGISUQyT7UveoWFQ5ivKRNXq2FFtpjcNGsTaWG5p5X/XDPvWTK+sQONzoeDOf9o46I2o3XdsYyC0uO3azWnlYfm4BcNqpUyjg=; X-YMail-OSG: OHvQr2oVM1ntacsnMLRkaFeVeKzl5ljmteQp4fqUdgYkZFrNbHKPU32zQF6BZz5vUfYkG_npqAJkoU2hGiXGeKZomshC4rjltCoh.IXW5GY97qw- Received: from [75.84.89.248] by web31809.mail.mud.yahoo.com via HTTP; Mon, 03 Dec 2007 05:25:40 PST X-Mailer: YahooMailWebService/0.7.161.1196381556.T7400 Date: Mon, 3 Dec 2007 05:25:40 -0800 (PST) From: Richard Broersma Jr Subject: Re: possible ODBC bug with '-infinity' To: Hiroshi Inoue Cc: Greg Cocks , Postgresql ODBC List In-Reply-To: <47526C0B.9060905@tpf.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <633255.45744.qm@web31809.mail.mud.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.062 tagged_above=0 required=5 tests=AWL=0.061, BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200712/2 X-Sequence-Number: 9280 --- On Sun, 12/2/07, Hiroshi Inoue wrote: > Do you think it is an appropriate handling ? This is a good question. I am not sure what an appropriate handling would be. My first test of '-infinity' (which resulted in a raised error) was with an ado recordset. Since you are questioning what is appropriate I thought that I should try a few different client front ends to see how they treated (+/-)infinity: Client | -infinity | + infinity ADO | |9999-12-31 23:59:59| Access/LT|1899-11-30 00:00:00|9999-12-31 23:59:59| OOB(ODBC)|0001-01-03 00:00:00|9999-12-31 23:59:59| ADO = ado recordset created in VB Access/LT = a linked tabled in MS-Access (probably DAO/ODBC?) OOB(ODBC) = Open Office.org Base ODBC connection to the Database. Having done further tests, it seems that the error must be a bug with ADO since other clients have not a problem with making -infinity equal to the smallest time stamp that their respective data type can display. In my case, I do not really care about what time stamp values are displayed by the clients for (+/-) infinity since I use these values as an implied NULL value for time stamps. Unfortunately, ADO is broken and can't display any value for -infinity. > How do you think the driver should treat -infinity ? It seems that it already handles it correctly. I was mistaken in thinking that the translation of (+/-) infinity was handled by ODBC. :o) Regards, Richard Broersma Jr.