From: yashar ebrahimpoor <ebrahimpoor.yashar@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: BUG #5884: i cant select entire array values
Date: Mon, 14 Feb 2011 12:55:08 GMT
Message-ID: <201102141255.p1ECt8VV000272@wwwmaster.postgresql.org> (raw)
The following bug has been logged online:
Bug reference: 5884
Logged by: yashar ebrahimpoor
Email address: ebrahimpoor.yashar@gmail.com
PostgreSQL version: 8.4.7
Operating system: centos 5.5
Description: i cant select entire array values
Details:
CREATE TABLE "flight"."FlightList" (
"FlighID" INTEGER DEFAULT nextval('flight.flist_flightid_seq'::regclass)
NOT NULL,
"FlightDate" DATE[] NOT NULL,
"FlightNum" VARCHAR[] NOT NULL,
"FlightTime" TIME WITHOUT TIME ZONE[] NOT NULL,
"FlightDuration" VARCHAR[] NOT NULL,
CONSTRAINT "FlightList_pkey" PRIMARY KEY("FlighID")
) WITH OIDS;
after create this table, insert some data
INSERT INTO
"flight"."FlightList"("FlightDate","FlightNum","FlightTime","FlightDuration"
)
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: column "FlightNum[0]" does not exist
LINE 1: select "FlightNum[0]" FROM flight."FlightList"
please help to resolve this problem.
thank you so much.
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-bugs@postgresql.org
Cc: ebrahimpoor.yashar@gmail.com
Subject: Re: BUG #5884: i cant select entire array values
In-Reply-To: <201102141255.p1ECt8VV000272@wwwmaster.postgresql.org>
References: <201102141255.p1ECt8VV000272@wwwmaster.postgresql.org>
* 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