Select from array slices doesn't work - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject Select from array slices doesn't work
Date
Msg-id 200009071556.e87FuUL55499@hub.org
Whole thread Raw
Responses Re: Select from array slices doesn't work
List pgsql-bugs
Kuba Ober (winnie@mika.fr.eu.org) reports a bug with a severity of 2
The lower the number the more severe it is.

Short Description
Select from array slices doesn't work

Long Description
When I try to select from array slices it gives strange qrPgSql error. Normal array indexing works, but slices don't.

Sample Code
> create table temp (arr varchar(20)[])
OK
> select arr[1:2] from temp
Error: qrPgSql: Parameter '2' not found
> select arr[1] from temp
OK

No file was uploaded with this report

pgsql-bugs by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: bug in date_part() function in 6.5.2, 7.0.2
Next
From: Tom Lane
Date:
Subject: Re: bug in date_part() function in 6.5.2, 7.0.2