Re: BUG #5884: i cant select entire array values - Mailing list pgsql-bugs

From Pavel Stehule
Subject Re: BUG #5884: i cant select entire array values
Date
Msg-id AANLkTinU=EGg9z3cP4c01+kX1f-Y-COkS4FV2Zz_W4Wb@mail.gmail.com
Whole thread Raw
In response to BUG #5884: i cant select entire array values  ("yashar ebrahimpoor" <ebrahimpoor.yashar@gmail.com>)
Responses Re: BUG #5884: i cant select entire array values  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-bugs
Hello

2011/2/14 yashar ebrahimpoor <ebrahimpoor.yashar@gmail.com>:
>
> The following bug has been logged online:
>
> Bug reference: =C2=A0 =C2=A0 =C2=A05884
> Logged by: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0yashar ebrahimpoor
> Email address: =C2=A0 =C2=A0 =C2=A0ebrahimpoor.yashar@gmail.com
> PostgreSQL version: 8.4.7
> Operating system: =C2=A0 centos 5.5
> Description: =C2=A0 =C2=A0 =C2=A0 =C2=A0i cant select entire array values
> Details:
>
> CREATE TABLE "flight"."FlightList" (
> =C2=A0"FlighID" INTEGER DEFAULT nextval('flight.flist_flightid_seq'::regc=
lass)
> NOT NULL,
> =C2=A0"FlightDate" DATE[] NOT NULL,
> =C2=A0"FlightNum" VARCHAR[] NOT NULL,
> =C2=A0"FlightTime" TIME WITHOUT TIME ZONE[] NOT NULL,
> =C2=A0"FlightDuration" VARCHAR[] NOT NULL,
> =C2=A0CONSTRAINT "FlightList_pkey" PRIMARY KEY("FlighID")
> ) WITH OIDS;
>
> after create this table, insert some data
> INSERT INTO
> "flight"."FlightList"("FlightDate","FlightNum","FlightTime","FlightDurati=
on"
> )
> VALUES(ARRAY["date"('2011-10-10'),"date"('2011-10-15')],
> ARRAY['230','231'],
> ARRAY["time"('21:00:00'),"time"('16:25:00')],
> ARRAY['2:30','2:35']);
>
> now i want to execute this query:
> select "FlightNum[0]" FROM flight."FlightList";
>
> return this error:
>
> ERROR: =C2=A0column "FlightNum[0]" does not exist
> LINE 1: select "FlightNum[0]" FROM flight."FlightList"
>

please, try to SELECT "FlightNum"[0] FROM FlightList

Pavel Stehule

p.s. Using a case sensitive identifiers isn't good idea






> please help to resolve this problem.
> thank you so much.
>
> --
> Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
> To make changes to your subscription:
> http://www.postgresql.org/mailpref/pgsql-bugs
>

pgsql-bugs by date:

Previous
From: "yashar ebrahimpoor"
Date:
Subject: BUG #5884: i cant select entire array values
Next
From: "Kevin Grittner"
Date:
Subject: Re: BUG #5884: i cant select entire array values