X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 4EE09D1B8DF for ; Tue, 6 Apr 2004 11:32:17 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 68120-01 for ; Tue, 6 Apr 2004 11:33:03 -0300 (ADT) Received: from candle.pha.pa.us (candle.pha.pa.us [207.106.42.251]) by svr1.postgresql.org (Postfix) with ESMTP id 32F11D1B88D for ; Tue, 6 Apr 2004 11:32:14 -0300 (ADT) Received: (from pgman@localhost) by candle.pha.pa.us (8.11.6/8.11.6) id i36EWab06319; Tue, 6 Apr 2004 10:32:36 -0400 (EDT) From: Bruce Momjian Message-Id: <200404061432.i36EWab06319@candle.pha.pa.us> Subject: Re: invalid input syntax for type tid: "(,)" In-Reply-To: <33898D66-8682-11D8-A231-0003935B359C@cegroup.it> To: "Jose' Cruanyes" Date: Tue, 6 Apr 2004 10:32:36 -0400 (EDT) Cc: pgsql-odbc@postgresql.org X-Mailer: ELM [version 2.4ME+ PL108 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200404/43 X-Sequence-Number: 3938 Jose' Cruanyes wrote: > > On Apr 4, 2004, at 7:04 AM, Tom Lane wrote: > > > "Jose' Cruanyes" writes: > >> select * from table1 where ctid = '(,)'; > >> [ works on some machines and not others ] > > > > I would argue that the ODBC driver is broken and needs to be fixed, > > as does the TID input parser which should never allow this ... > > > > However, the reason for the platform dependency is probably that > > strtoul() is setting errno on some machines and not othe > > since strtoul() should return 0 on an empty string, I think it will be > safe to change the instances of '(,)' to '(0,0)' in the driver source > code, even if it's not too clear to me what it does... > > I've found three, two on "convert.c" and one on "results.c" > > now if some one can put the changes upstream... Has this been fixed in ODBC CVS? -- Bruce Momjian | http://candle.pha.pa.us pgman@candle.pha.pa.us | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073