Re: substr

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jeff MacDonald <jeff(at)hub(dot)org>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: substr
Date: 2000-10-19 14:50:12
Message-ID: 9048.971967012@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

Jeff MacDonald <jeff(at)hub(dot)org> writes:
> i noticed that substr behaves a bit different in pgsql than perl
> ie select foo from table where substr(foo,1,1) = 'X';

> just wondering on the reasoning for this offset ?

Larry Wall and the SQL92 authors didn't talk to each other...

We are implementing SQL around here, not Perl, so we have to follow
the SQL spec's definition of substr().

regards, tom lane

In response to

  • substr at 2000-10-19 13:19:10 from Jeff MacDonald

Responses

  • Re: substr at 2000-10-19 16:05:34 from Jeff MacDonald

Browse pgsql-sql by date

  From Date Subject
Next Message Jeff MacDonald 2000-10-19 16:05:34 Re: substr
Previous Message Jeff MacDonald 2000-10-19 13:19:10 substr