From: | Keary Suska <hierophant(at)pcisys(dot)net> |
---|---|
To: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>, <lockhart(at)fourpalms(dot)org> |
Cc: | Postgres General <pgsql-general(at)postgresql(dot)org> |
Subject: | Re: FYI To Postgres Authors |
Date: | 2001-10-26 07:28:47 |
Message-ID: | B7FE6CCF.5739%hierophant@pcisys.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Thanks for fixing it. I always forget the syntax for substring, so I look in
the online docs, and I don't blink twice because I am accustomed to strings
being 0-based, until I don't get the results I expect. Fortunately I
remembered something was fishy about the example and I tested before
running.
Keary Suska
Esoteritech, Inc.
"Leveraging Open Source for a better Internet"
> From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
> Date: Thu, 25 Oct 2001 23:00:36 -0400 (EDT)
> To: lockhart(at)fourpalms(dot)org
> Cc: Keary Suska <hierophant(at)pcisys(dot)net>, Postgres General
> <pgsql-general(at)postgresql(dot)org>
> Subject: Re: [GENERAL] FYI To Postgres Authors
>
>>> The description of the "substring" function in the 7.1 docs is still wrong:
>>> substring('Thomas' from 2 for 3) -> 'oma'
>>> No, it's 'hom'.
>>
>> Yup. I should have used the database to calculate it, eh? Will be fixed.
>> Thanks.
>
> I see in SGML:
>
> <entry><literal>substring('Thomas' from 2 for 3)</literal></entry>
> <entry><literal>hom</literal></entry>
>
> Looks OK to me, and in the database:
>
> test=> select substring('Thomas' from 2 for 3);
> substring
> -----------
> hom
> (1 row)
>
> My guess is that we fixed it after 7.1.
>
> --
> Bruce Momjian | http://candle.pha.pa.us
> pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
> + If your life is a hard drive, | 830 Blythe Avenue
> + Christ can be your backup. | Drexel Hill, Pennsylvania 19026
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo(at)postgresql(dot)org)
>
From | Date | Subject | |
---|---|---|---|
Next Message | Markus Wagner | 2001-10-26 07:36:52 | how to optimize record matching? |
Previous Message | sjh | 2001-10-26 07:12:18 | initdb segfault - solaris 8 |