Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id 9EFF99FBDCC for ; Fri, 6 Apr 2007 13:57:17 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.187]) (amavisd-maia, port 10024) with ESMTP id 75992-08 for ; Fri, 6 Apr 2007 13:57:12 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4 Received: from web50604.mail.re2.yahoo.com (web50604.mail.re2.yahoo.com [206.190.38.91]) by postgresql.org (Postfix) with SMTP id 348D49FBDBD for ; Fri, 6 Apr 2007 13:57:13 -0300 (ADT) Received: (qmail 50073 invoked by uid 60001); 6 Apr 2007 16:57:12 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Message-ID; b=fQNeBBGMZ0XrxhvX0naJ5z5Y/xUUV/gtTmsADmFA+hxcuap2Lu8igrAxuvLNF+BKftzgM/ijAaO6vHrmJCAhuj30Jvj9jlGpL22y/oicfq2/M1e1jhR0Yqk+HV2lkGV74A9AzzOGrUBI58ZgpktbMQJ9NGdAp3LCwk5vju7SbQk=; X-YMail-OSG: OjEwyEAVM1kCnN1DkcobgIeNylUGNoN7bhft63H17PnxB4kDT04W5Eq1UkDh8XoMOw-- Received: from [203.200.35.31] by web50604.mail.re2.yahoo.com via HTTP; Fri, 06 Apr 2007 09:57:12 PDT X-Mailer: YahooMailRC/476 YahooMailWebService/0.7.41.8 Date: Fri, 6 Apr 2007 09:57:12 -0700 (PDT) From: Bellur Ashwin Subject: Problem with Running Query To: pgsql-jdbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-458908015-1175878632=:49845" Message-ID: <195732.49845.qm@web50604.mail.re2.yahoo.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=1.007 tagged_above=0 required=5 tests=AWL=0.250, BAYES_00=-2.599, DNS_FROM_RFC_ABUSE=0.2, DNS_FROM_RFC_POST=1.708, DNS_FROM_RFC_WHOIS=1.447, HTML_MESSAGE=0.001 X-Spam-Level: * X-Archive-Number: 200704/7 X-Sequence-Number: 16856 --0-458908015-1175878632=:49845 Content-Type: text/plain; charset=ascii 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/ --0-458908015-1175878632=:49845 Content-Type: text/html; charset=iso-8859-7 Content-Transfer-Encoding: quoted-printable
Hi,
I have modified my postgres code to accept quer= ies starting with a word "My" followed by the query followed by the 1000 #s= eparated values,
inside postgres, i check for the word "My" at the begin= ning of the query if found, i will generate 1000 inserts into a table (thes= e 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 wher= e a.a1=3Db.a1 #1#2#3...........

Now my problem is when i try to send= the new (appended) query to the JDBC, i get
ArrayIndexOutOfBoundExcepti= on: Index: 1 Size: 1
from the executeQuery function, here my query is r= eaching 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 Re= gards,
Bellur Ashwin

=0A=09=0A=0A=09=0A=09=09
=0AHere=A2s a new way to find what you're looking for - = Yahoo! Answers --0-458908015-1175878632=:49845--