X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id DFA7C52CC8 for ; Mon, 18 Jul 2005 16:38:48 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 36535-05 for ; Mon, 18 Jul 2005 19:38:47 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id B4B4952CC7 for ; Mon, 18 Jul 2005 16:38:45 -0300 (ADT) Received: (qmail 1023 invoked from network); 18 Jul 2005 19:38:47 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.2?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 18 Jul 2005 19:38:47 -0000 In-Reply-To: <90876a9e05071811001c18bd0d@mail.gmail.com> References: <90876a9e05071811001c18bd0d@mail.gmail.com> Mime-Version: 1.0 (Apple Message framework v733) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <53B19BCA-CB74-4E83-857B-C625C302BD57@fastcrypt.com> Cc: pgsql-jdbc@postgresql.org Content-Transfer-Encoding: 7bit From: Dave Cramer Subject: Re: Debugging the JDBC drivers... Date: Mon, 18 Jul 2005 15:38:43 -0400 To: Christian Cryder X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.016 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200507/112 X-Sequence-Number: 13260 Christian, The next thing that happens is that it gets sent in a bind message after being converted to Unicode. Look at SimpleParameterList.writeV3Value in org.postgresql.core.v3 // Encoded string. if (encoded[index] == null) encoded[index] = Utils.encodeUTF8((String)paramValues [index]); pgStream.Send(encoded[index]); Dave On 18-Jul-05, at 2:00 PM, Christian Cryder wrote: > Couple of questions as I dive into debugging the JDBC drivers. > > 1. is this the correct place to ask questions of the JDBC developers? > Or is there a separate dev list? > > 2. I am invoking PreparedStatement.setTimestamp(int i, Timestamp t1) > and I need to figure out where t1 actually gets converted into what > gets sent across the wire. I have found my way to > QueryExecutorImpl.sendBind() [ca. line 770] where I see this debugging > statement: > > FE=> Bind(stmt=null,portal=null,$1=<2005-04-03 > 02:29:43.000000-0700>) > > At this point, t1 is correct, but sometime between here and the actual > insert into the db, it is getting rolled forward an hour. I need help > locating the spot that is doing that. > > 3. Is there any "roadmap" kind of document that might help me > understand how things are laid out, where to look, etc? > > tia, > Christian > > ---------------------------(end of > broadcast)--------------------------- > TIP 4: Have you searched our list archives? > > http://archives.postgresql.org > >