Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 00F7C9FB487 for ; Thu, 12 Jul 2007 06:29:07 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 60053-04 for ; Thu, 12 Jul 2007 06:28:56 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from nz-out-0506.google.com (nz-out-0506.google.com [64.233.162.226]) by postgresql.org (Postfix) with ESMTP id 438DE9FB466 for ; Thu, 12 Jul 2007 06:29:02 -0300 (ADT) Received: by nz-out-0506.google.com with SMTP id l8so69357nzf for ; Thu, 12 Jul 2007 02:28:58 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=WQNsREZsf8M2XzARYUeCibk/lAQDX/7bVrioww0wzhVs6Atzjr03XlGeTuL3QMEwqto28dqw339K+5XLneE9BCdwXBTSmk/O7GN2OKhFFffpoC6wgqCFfHIn8FUDF87ARW5jugbrbC3eL2BeQd8D4CuyMNZrDJkj/kropV7l5Gc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=GBmBZgWmxo7sAEYYXEIlaZuOoXcf1F1gcvgL9ZFu/MNllGOwoUeySfm+ZsFRPLfQB3STvO0dLtAkKhcx5wRUhc6elq5f1nR6Cfv51g70crWkOjtEjxsQAsvM2Tb5Vbjq47xjlxNhhsxTmA+hi2g4uSukAPO9tAJ3A8y0I0GFb80= Received: by 10.115.107.1 with SMTP id j1mr403834wam.1184232538050; Thu, 12 Jul 2007 02:28:58 -0700 (PDT) Received: by 10.115.15.11 with HTTP; Thu, 12 Jul 2007 02:28:58 -0700 (PDT) Message-ID: <3b2806290707120228t7294eadbh8abcea9196acde80@mail.gmail.com> Date: Thu, 12 Jul 2007 11:28:58 +0200 From: "Diego Zanga" To: pgsql-jdbc@postgresql.org Subject: Re: postgres jdbc into eclipse plugin (OID problems) In-Reply-To: <200707121041.40011.fluca1978@infinito.it> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <3b2806290707110207h1dc1a8a5ld4693c852d830715@mail.gmail.com> <200707121041.40011.fluca1978@infinito.it> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.229 tagged_above=0 required=5 tests=AWL=-0.278, BAYES_40=-0.185, DNS_FROM_AHBL_RHSBL=0.692 X-Spam-Level: X-Archive-Number: 200707/47 X-Sequence-Number: 17221 2007/7/12, Luca Ferrari : > On Wednesday 11 July 2007 Diego Zanga's cat, walking on the keyboard, wrote: > > However i could not understand WHY, it does it outside > > eclipse and not inside it: this means the jdbc driver > > have some problems inside eclipse, and doez not > > throw execeptions about this problem, so the server > > has some problem managing the prepared statement, > > but i dont know what is it, and how to debug it > > I never developed an eclipse plug-ing, thus I don't know exactly how to help > you (someone with more experience can give you help); I've got only a few > suggestions. First of all, I guess the problem is in eclipse and not in the > driver. I think if there's an exception is eclipse that is hiding it to you. the problems is probably in my plugin :o) however i dunno how to fully debug postgres activity and i've understood why yesterday night :O/ the query i was using was something like: select tableA.fieldA, tableA.fieldB from tableA where tableA.fieldA=8 the query report an error about >tableA<, but not WHERE/WITCH tableA word reported the error. it will be more if the error was like error in tableA: select tableA.fieldA, tableA.fieldB from tableA where tableA.fieldA like "tableA" ..............................^ or error in tableA: tableA.fieldB from tableA where tableA.fieldA=8 so it's simpler to understand what part of the query seems wrong > Moreover, you can set the debugging options in the postgresql.conf > (client_min_messages and debug_print*) and have a look at the logs to see > what the server is receiving, as well as you can enable debugging in the > driver; try appending ?loglevel=2 at the connection URL. i've downloaded the jdbc source and debugged it, in the future i will enable even this debug options however the problem was about a prepared statement like select tableA.fieldA, tableA.fieldB from tableA where tableA.fieldA like ? while debugging it i thought it it while receiving, instead it process it only after the parameter waz received and it has a full query select tableA.fieldA, tableA.fieldB from tableA where tableA.fieldA like "tableA" the he doez not like if the first select tableA.fieldA, ..........^ (the query i've used is only an example, the one i'm debuggins is a little long and complex) thanks :O) -- Diego Zanga ------------------------------ Skype NAARANI http://www.javablog.eu http://www.elawoffice.it http://www.blogstudiolegale.eu