Skip site navigation (1) Skip section navigation (2)

Re: Synthesize support for Statement.getGeneratedKeys()?

From: Kris Jurka <books(at)ejurka(dot)com>
To: Ken Johanson <pg-user(at)kensystem(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Synthesize support for Statement.getGeneratedKeys()?
Date: 2007-01-27 04:50:56
Message-ID: Pine.BSO.4.64.0701262349230.20148@leary2.csoft.net (view raw or flat)
Thread:
Lists: pgsql-jdbc

On Thu, 25 Jan 2007, Ken Johanson wrote:

> In implementing Statement.executeUpdate(String sql,String[] columnNames), 
> does any know how I could go about sending the sql and subsequent RETURNING 
> clause directly to a stream? Just so I can avoid double-buffering the query 
> (allocated in the sql, and second in the StringBuffer I'd be appending the 
> RETURNING clause to).

Don't worry about this minor overhead.  So much other manipulation and 
object creation happens (even forgetting the network trip) that this will 
be in the noise.

> I do see that there are ASCII and Unicode char streams 
> and I'm also  not sure how to delegate to those or if a highr level method 
> (network) would do that..
>

These are for sending data (parameters) to the server for things like 
large text fields.

Kris Jurka


In response to

Responses

pgsql-jdbc by date

Next:From: Kris JurkaDate: 2007-01-27 04:57:59
Subject: Re: Synthesize support for Statement.getGeneratedKeys()?
Previous:From: Ken JohansonDate: 2007-01-27 04:33:52
Subject: Re: Synthesize support for Statement.getGeneratedKeys()?

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group