pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Diego Zanga <naarani@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: postgres jdbc into eclipse plugin (OID problems)
Date: Thu, 12 Jul 2007 11:28:58 +0200
Message-ID: <3b2806290707120228t7294eadbh8abcea9196acde80@mail.gmail.com> (raw)
In-Reply-To: <200707121041.40011.fluca1978@infinito.it>
References: <3b2806290707110207h1dc1a8a5ld4693c852d830715@mail.gmail.com>
	<200707121041.40011.fluca1978@infinito.it>

2007/7/12, Luca Ferrari <fluca1978@infinito.it>:
> 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 <friendly> 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 <processed> 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 <tableA> 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



view thread (4+ messages)  latest in thread

Message-ID: <3b2806290707120228t7294eadbh8abcea9196acde80@mail.gmail.com>
Permalink:  ../3b2806290707120228t7294eadbh8abcea9196acde80@mail.gmail.com/
Also on:    postgresql.org/message-id/3b2806290707120228t7294eadbh8abcea9196acde80@mail.gmail.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: naarani@gmail.com
  Subject: Re: postgres jdbc into eclipse plugin (OID problems)
  In-Reply-To: <3b2806290707120228t7294eadbh8abcea9196acde80@mail.gmail.com>
  References: <3b2806290707110207h1dc1a8a5ld4693c852d830715@mail.gmail.com> <200707121041.40011.fluca1978@infinito.it> <3b2806290707120228t7294eadbh8abcea9196acde80@mail.gmail.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