From: | BlackMage <dsd7872(at)uncw(dot)edu> |
---|---|
To: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Inserting Information in PostgreSQL interval |
Date: | 2009-06-22 00:27:10 |
Message-ID: | 24140292.post@talk.nabble.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Hey, that worked!
Thanks a lot.
BlackMage wrote:
>
> Hey,
>
> I am having trouble entering intervals into a PostgreSQL inverval field.
> Currently I using prepared statements that look like this:
>
> {code}
>
> PreparedStatement query = conn.prepareStatement("INSERT............");
> query.setObject(1, "{28.1, 29.2}");
> query.setObject(2, "{1:23, 1:24}");
> query.execute();
> {code}
>
> And when I execute the code I get this error:
>
> org.postgresql.util.PSQLException: ERROR: column "field_1" is of type
> interval[] but expression is of type character varying
>
>
> So is there another way of entering an array of intervals into a
> postgresql database using prepared statement? What am I doing wrong?
>
>
--
View this message in context: http://www.nabble.com/Inserting-Information-in-PostgreSQL-interval-tp24139349p24140292.html
Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
From | Date | Subject | |
---|---|---|---|
Next Message | Saurabh Dave | 2009-06-22 05:02:18 | Queries very slow and memory consumption too high |
Previous Message | Oliver Jowett | 2009-06-22 00:11:35 | Re: Inserting Information in PostgreSQL interval |