pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bellur Ashwin <bell_ashwin@yahoo.com>
To: pgsql-jdbc@postgresql.org
Subject: Problem with Running Query
Date: Fri, 6 Apr 2007 09:57:12 -0700 (PDT)
Message-ID: <195732.49845.qm@web50604.mail.re2.yahoo.com> (raw)

Hi,
I have modified my postgres code to accept queries starting with a word "My" followed by the query followed by the 1000 #separated values,
inside postgres, i check for the word "My" at the beginning of the query if found, i will generate 1000 inserts into a table (these 1000 values are those i have sent after the query with the delimiter #), then execute the query which is in between "My" and #values,

Example: My query would look like this

My select * from xyz1 a, xyz2 b where a.a1=b.a1 #1#2#3...........

Now my problem is when i try to send the new (appended) query to the JDBC, i get
ArrayIndexOutOfBoundException: Index: 1 Size: 1 
from the executeQuery function, here my query is reaching the postgres and is executing, but i am getting the exception in my JAVA Program 

Any Idea of why i am getting the exception.



With Regards,
Bellur Ashwin




		
__________________________________________________________
Yahoo! India Answers: Share what you know. Learn something new
http://in.answers.yahoo.com/

view thread (2+ messages)  latest in thread

Message-ID: <195732.49845.qm@web50604.mail.re2.yahoo.com>
Permalink:  ../195732.49845.qm@web50604.mail.re2.yahoo.com/
Also on:    postgresql.org/message-id/195732.49845.qm@web50604.mail.re2.yahoo.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: bell_ashwin@yahoo.com
  Subject: Re: Problem with Running Query
  In-Reply-To: <195732.49845.qm@web50604.mail.re2.yahoo.com>
  References: <195732.49845.qm@web50604.mail.re2.yahoo.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