Patch - Streaming of PreparedStatement/setInputStream

From: "Chris Smith" <cdsmith(at)twu(dot)net>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Patch - Streaming of PreparedStatement/setInputStream
Date: 2003-01-31 16:40:02
Message-ID: 00d201c2c947$67692440$6700000a@KYA
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Here's a preliminary cut for my patch to do streaming of SQL to the server
when PreparedStatement is used with getInputStream. The patch is to the
7.3.1 source. It's not cleaned up or documented yet, but I'd like to get
some comments on the patch before I get into that.

This is the first patch I've written for Postgres, and I am unsure of the
full protocol for format and submission. Anyone want to give me a pointer
for that?

Potential issues here involve:

1. I haven't done any documentation.
2. There's use of instanceof that I don't like.
3. This only works for setBinaryStream, not the other stream methods
(setAsciiStream and setUnicodeStream).

--
www.designacourse.com
The Easiest Way to Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation

Attachment Content-Type Size
streamingjdbc.patch application/octet-stream 7.5 KB

Browse pgsql-jdbc by date

  From Date Subject
Next Message Barry Lind 2003-01-31 16:48:08 Re: problems with getImportedKeys method
Previous Message Vicente Alabau Gonzalvo 2003-01-31 11:59:18 Data types