pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Debugging the JDBC drivers...
3+ messages / 2 participants
[nested] [flat]

* Debugging the JDBC drivers...
@ 2005-07-18 18:00 Christian Cryder <c.s.cryder@gmail.com>
  2005-07-18 19:16 ` Re: Debugging the JDBC drivers... Dave Cramer <pg@fastcrypt.com>
  2005-07-18 19:38 ` Re: Debugging the JDBC drivers... Dave Cramer <pg@fastcrypt.com>
  0 siblings, 2 replies; 3+ messages in thread

From: Christian Cryder @ 2005-07-18 18:00 UTC (permalink / raw)
  To: pgsql-jdbc

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



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Debugging the JDBC drivers...
  2005-07-18 18:00 Debugging the JDBC drivers... Christian Cryder <c.s.cryder@gmail.com>
@ 2005-07-18 19:16 ` Dave Cramer <pg@fastcrypt.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Dave Cramer @ 2005-07-18 19:16 UTC (permalink / raw)
  To: Christian Cryder <c.s.cryder@gmail.com>; +Cc: pgsql-jdbc

Christian,

At that point you are seeing what the driver is going to send,

Just below that in the code you should see it actually binding the  
timestamp

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
>
>




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Debugging the JDBC drivers...
  2005-07-18 18:00 Debugging the JDBC drivers... Christian Cryder <c.s.cryder@gmail.com>
@ 2005-07-18 19:38 ` Dave Cramer <pg@fastcrypt.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Dave Cramer @ 2005-07-18 19:38 UTC (permalink / raw)
  To: Christian Cryder <c.s.cryder@gmail.com>; +Cc: pgsql-jdbc

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
>
>




^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2005-07-18 19:38 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2005-07-18 18:00 Debugging the JDBC drivers... Christian Cryder <c.s.cryder@gmail.com>
2005-07-18 19:16 ` Dave Cramer <pg@fastcrypt.com>
2005-07-18 19:38 ` Dave Cramer <pg@fastcrypt.com>

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