Re: How to insert data to a table with datarange data type?

From: Jeff Janes <jeff(dot)janes(at)gmail(dot)com>
To: pgadmin-support(at)postgresql(dot)org
Subject: Re: How to insert data to a table with datarange data type?
Date: 2013-03-09 21:13:33
Message-ID: CAMkU=1xTWikq4EN+Wy+Ucmup8dtKp0A3MHgb_S6je6hsFhHCOg@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgadmin-support

On Sat, Mar 9, 2013 at 12:43 PM, Csanyi Pal <csanyipal(at)gmail(dot)com> wrote:

> Hi,
>
> I just installed postgresql 9.2 and PgAdmin3 version 1.16.1 on my Debian
> Wheezy system.
>
> I have a database and in it a table with one column 'date' that is
> daterange type.
>
> When I want to add the first date into that table I get error message:
> An error has occurred:
>
> ERROR: array value must start with "{" or dimension information
> LINE 1: ...félévek_negyedévek".felev_2_napjai(datum) VALUES
> ('2013.03.0...
>

It looks like you may have declared your column to be of type daterange[],
not type daterange.

That is, an array of dateranges, not a simple daterange.

Cheers,

Jeff

In response to

Browse pgadmin-support by date

  From Date Subject
Next Message Michal Kozusznik 2013-03-11 12:32:33 SQLpan vertical scrolling
Previous Message Csanyi Pal 2013-03-09 20:43:54 How to insert data to a table with datarange data type?