Thread: JDBC patch for util.Serialize and jdbc2.PreparedStatement

JDBC patch for util.Serialize and jdbc2.PreparedStatement

From
"Robert B. Easter"
Date:
The attached file: serializepatch.tgz, contains a patch for
org.postgresql.util.Serialize and org.postgresql.jdbc2.PreparedStatement that
fixes the ability to "serialize" a simple java class into a postgres table.

The current cvs seems completely broken in this support, so the patch puts it
into working condition, granted that there are many limitations with
serializing java classes into Postgres.

A little test program is included with the patches.  The comments in the
Serialize class tries to explain how all this works.

- Robert Easter

Re: JDBC patch for util.Serialize and jdbc2.PreparedStatement

From
"Robert B. Easter"
Date:
And here is the file!

On Thursday 23 August 2001 14:37, Robert B. Easter wrote:
> The attached file: serializepatch.tgz, contains a patch for
> org.postgresql.util.Serialize and org.postgresql.jdbc2.PreparedStatement
> that fixes the ability to "serialize" a simple java class into a postgres
> table.
>
> The current cvs seems completely broken in this support, so the patch puts
> it into working condition, granted that there are many limitations with
> serializing java classes into Postgres.
>
> A little test program is included with the patches.  The comments in the
> Serialize class tries to explain how all this works.
>
> - Robert Easter
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

Attachment

Re: JDBC patch for util.Serialize and jdbc2.PreparedStatement

From
Bruce Momjian
Date:
> The attached file: serializepatch.tgz, contains a patch for
> org.postgresql.util.Serialize and org.postgresql.jdbc2.PreparedStatement that
> fixes the ability to "serialize" a simple java class into a postgres table.
>
> The current cvs seems completely broken in this support, so the patch puts it
> into working condition, granted that there are many limitations with
> serializing java classes into Postgres.
>
> A little test program is included with the patches.  The comments in the
> Serialize class tries to explain how all this works.

And the attached file is?  Where?  :-)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: JDBC patch for util.Serialize and jdbc2.PreparedStatement

From
Bruce Momjian
Date:
> And here is the file!
>

I have gotten in the habit if including the file as an attachment the
_moment_ I mention it in the email.  I forget to attach it if I don't do
that.  :-)

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: JDBC patch for util.Serialize and jdbc2.PreparedStatement

From
Bruce Momjian
Date:
Your patch has been added to the PostgreSQL unapplied patches list at:

    http://candle.pha.pa.us/cgi-bin/pgpatches

I will try to apply it within the next 48 hours.


> And here is the file!
>
> On Thursday 23 August 2001 14:37, Robert B. Easter wrote:
> > The attached file: serializepatch.tgz, contains a patch for
> > org.postgresql.util.Serialize and org.postgresql.jdbc2.PreparedStatement
> > that fixes the ability to "serialize" a simple java class into a postgres
> > table.
> >
> > The current cvs seems completely broken in this support, so the patch puts
> > it into working condition, granted that there are many limitations with
> > serializing java classes into Postgres.
> >
> > A little test program is included with the patches.  The comments in the
> > Serialize class tries to explain how all this works.
> >
> > - Robert Easter
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo@postgresql.org so that your
> > message can get through to the mailing list cleanly

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

Re: JDBC patch for util.Serialize and jdbc2.PreparedStatement

From
Rene Pijlman
Date:
On Thu, 23 Aug 2001 14:37:27 -0400, you wrote:
>a patch [...] that fixes the ability to "serialize" a simple java class
>into a postgres table.
>
>The current cvs seems completely broken in this support, so the patch
>puts it into working condition, granted that there are many limitations
>with serializing java classes into Postgres.

I would appreciate it if you would explain to us a little more
what does and doesn't work before and after applying this patch.

[jdbc-list added to the CC]

Regards,
René Pijlman

Re: JDBC patch for util.Serialize and jdbc2.PreparedStatement

From
Bruce Momjian
Date:
Patch rejected.  New version added to patch queue.

> And here is the file!
>
> On Thursday 23 August 2001 14:37, Robert B. Easter wrote:
> > The attached file: serializepatch.tgz, contains a patch for
> > org.postgresql.util.Serialize and org.postgresql.jdbc2.PreparedStatement
> > that fixes the ability to "serialize" a simple java class into a postgres
> > table.
> >
> > The current cvs seems completely broken in this support, so the patch puts
> > it into working condition, granted that there are many limitations with
> > serializing java classes into Postgres.
> >
> > A little test program is included with the patches.  The comments in the
> > Serialize class tries to explain how all this works.
> >
> > - Robert Easter
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 3: if posting/reading through Usenet, please send an appropriate
> > subscribe-nomail command to majordomo@postgresql.org so that your
> > message can get through to the mailing list cleanly

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026