pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: tyagel@yahoo.com
To: pgsql-jdbc@postgresql.org
Subject: Arrays and JDBC :: setObject causes array_in Need to specify dimension
Date: 24 May 2004 06:23:10 -0700
Message-ID: <d84bc765.0405240523.1debfe1f@posting.google.com> (raw)

Im repositing this question from Friday as it ended up on the end of a
year old thread that did not answer my question ...

I have created a database table with and int[] column and I would like
to insert records into this table using JDBC.

The JDBC documentation that I have read seems to indicate that I
should use setObject when inserting the int[] into my
PreparedStatement.

When I attempt to insert the record with the int[] that was set via
setObject I get an error reading "array_in: Need to specify
dimension".

Any help with this would be greatly appreciated.

Thanks,
Thomas



view thread (2+ messages)  latest in thread

Message-ID: <d84bc765.0405240523.1debfe1f@posting.google.com>
Permalink:  ../d84bc765.0405240523.1debfe1f@posting.google.com/
Also on:    postgresql.org/message-id/d84bc765.0405240523.1debfe1f@posting.google.com

 · 

reply

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-jdbc@postgresql.org
  Cc: tyagel@yahoo.com
  Subject: Re: Arrays and JDBC :: setObject causes array_in Need to specify dimension
  In-Reply-To: <d84bc765.0405240523.1debfe1f@posting.google.com>
  References: <d84bc765.0405240523.1debfe1f@posting.google.com>

* 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