pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Jose' Cruanyes <cruanyes@cegroup.it>
Cc: pgsql-odbc@postgresql.org
Subject: Re: invalid input syntax for type tid: "(,)"
Date: Tue, 6 Apr 2004 10:32:36 -0400 (EDT)
Message-ID: <200404061432.i36EWab06319@candle.pha.pa.us> (raw)
In-Reply-To: <33898D66-8682-11D8-A231-0003935B359C@cegroup.it>

Jose' Cruanyes wrote:
> 
> On Apr 4, 2004, at 7:04 AM, Tom Lane wrote:
> 
> > "Jose' Cruanyes" <cruanyes@cegroup.it> 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



view thread (7+ messages)

Message-ID: <200404061432.i36EWab06319@candle.pha.pa.us>
Permalink:  ../200404061432.i36EWab06319@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200404061432.i36EWab06319@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-admin@postgresql.org
  Cc: pgman@candle.pha.pa.us, cruanyes@cegroup.it, pgsql-odbc@postgresql.org
  Subject: Re: invalid input syntax for type tid: "(,)"
  In-Reply-To: <200404061432.i36EWab06319@candle.pha.pa.us>
  References: <33898D66-8682-11D8-A231-0003935B359C@cegroup.it> <200404061432.i36EWab06319@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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