Received: from localhost (maia-2.hub.org [200.46.204.187]) by postgresql.org (Postfix) with ESMTP id CB6AF9FB8D5 for ; Wed, 11 Jul 2007 06:07:56 -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 61472-07 for ; Wed, 11 Jul 2007 06:07:49 -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.233]) by postgresql.org (Postfix) with ESMTP id C0FFD9FB88F for ; Wed, 11 Jul 2007 06:07:53 -0300 (ADT) Received: by nz-out-0506.google.com with SMTP id l8so1147703nzf for ; Wed, 11 Jul 2007 02:07:51 -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:mime-version:content-type:content-transfer-encoding:content-disposition; b=H0fSCeWRLBkP3WaI+Ry21o1oqP/GYY7ByAyQgKIiBj7Tw/HKp4RGdCU2J6Gg84hm+JwdB33KSCmDaOu12W+ksffwuH08TKeJ7imx+ar/R/3RSvQ3deUTK0cTQkhbNKC2L4emK4l6R3X+pVK06hQBERBoVZwogdrDhAJsMU+umiM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=gzUoyEDFFpWzmGD+ZyGhlVl+MwUMmGxurVXWmd3tuWGGGcV/VabwLGwPVQ9AYbr3sK6QHGNWo7AjxdGLaTTUpaEUJiBi1/R8mNdaJbNfKZVfVQGX/izhrF8SZ/tRMivTsUq8DZDJiAwoIlVPJfzlfV/ZaAGVOrwo3+w4ob8zfNo= Received: by 10.114.197.1 with SMTP id u1mr4956351waf.1184144870921; Wed, 11 Jul 2007 02:07:50 -0700 (PDT) Received: by 10.115.15.11 with HTTP; Wed, 11 Jul 2007 02:07:49 -0700 (PDT) Message-ID: <3b2806290707110207h1dc1a8a5ld4693c852d830715@mail.gmail.com> Date: Wed, 11 Jul 2007 11:07:49 +0200 From: "Diego Zanga" To: pgsql-jdbc@postgresql.org Subject: postgres jdbc into eclipse plugin (OID problems) MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200707/40 X-Sequence-Number: 17214 Lo, i'm using postgres jdbc (level 3 ver 8.2-505) into an eclipse plugin (i'm developing the plugin to simplify db creation /mantainment, inside some projects). I've a big problem: the server (?!) receive the same prepared statment as inside the plugin as outside( during test, without eclipse), but works differently. If i do it inside the same OID is set to the parameters, but while inside ECLIPSE the server do not add <"> after and before string parameters, while OUTSIDE is set the same OID, and do it. I've debugged the jdbc driver and the OID is 1043, sended to the server: (it's all called from Jdbc3PreparedStatement class) class : QueryExecutorImpl method: private void sendQuery( ..... ) here i've seen that at line 700, the OID is sent to the server for (int i = 1; i <= params.getParameterCount(); ++i) pgStream.SendInteger4(params.getTypeOID(i)); After declaring parameters type to server, there is a BIND of the effective parameters, done by [line 777] private void sendBind(SimpleQuery query, SimpleParameterList params, Portal portal) throws IOException { where the parameter is sended with this command: params.writeV3Value(i, pgStream); // Parameter value So, it's the Server to manage the parameters type eventually adding <"> to string, knowing the OID. 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 Any hint? cya -- Diego Zanga ------------------------------ Skype NAARANI http://www.javablog.eu http://www.elawoffice.it http://www.blogstudiolegale.eu