Re: Possible bug with BYTEA and JDBC

From: dmp <danap(at)ttc-cmc(dot)net>
To: Gregory Kotsaftis <gregkotsaftis(at)yahoo(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Possible bug with BYTEA and JDBC
Date: 2010-02-13 18:10:40
Message-ID: 4B76EB20.1020502@ttc-cmc.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Greg wrote:

>Hi,
>
>I am using:
>
>Windows XP Pro SP3 EN
>JDK 1.6.0_u18
>postgresql-8.4-701.jdbc4.jar
>postgresql-8.5alpha3
>
>I followed the steps in the blob tutorial and tried to test the BYTEA example:
>http://jdbc.postgresql.org/documentation/head/binary-data.html#binary-data-example
>I found out that the BYTEA data that is persisted in the db is corrupt. This is the details:
>

Tested successfully on:

Linux Test
JRE 1.5.0_12
postgresql-8.4-701.jdbc3.jar
PostgreSQL 8.3.3 & PostgreSQL 8.4.1 on Linux

Windows XP Pro Test
JRE 1.6.0
postgresql-8.4-701.jdbc3.jar & postgresql-8.4-701.jdbc4.jar
PostgreSQL 8.3.3 on & PostgreSQL 8.4.1 on Linux

Attached test source and sql files for perhaps someone else to quickly
test in an environment that duplicates your exactly. The XP case
most closely matches yours beside SP3 and my PostgreSQL server
is not on the Windows & 8.4.5alpha3. Assume yours is on the XP
machine.

danap

Attachment Content-Type Size
public_person_20100213.sql text/plain 550 bytes
public_person_20100213_data.sql text/plain 452 bytes
PostgreSQL_JDBC.java text/plain 6.5 KB

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Gregory Kotsaftis 2010-02-13 19:17:05 Re: Possible bug with BYTEA and JDBC
Previous Message Gregory Kotsaftis 2010-02-13 11:48:55 Possible bug with BYTEA and JDBC