Re: Testcase for bytea datatype - Mailing list pgsql-jdbc

From Dirk Bromberg
Subject Re: Testcase for bytea datatype
Date
Msg-id 001f01c2e288$da68dc10$24ddfea9@xbserv
Whole thread Raw
In response to Testcase for bytea datatype  (Anders Hermansen <anders@yoyo.no>)
Responses Re: Testcase for bytea datatype
Re: Testcase for bytea datatype
List pgsql-jdbc
I've insert the code to mine and if i take an image the test is not ok.
the byte[] are different.

Don't use plain text to test!!

greets

Dirk Bromberg

>-----Ursprüngliche Nachricht-----
>Von: pgsql-jdbc-owner@postgresql.org
>[mailto:pgsql-jdbc-owner@postgresql.org] Im Auftrag von Anders
>Hermansen
>Gesendet: Sonntag, 2. März 2003 19:08
>An: pgsql-jdbc@postgresql.org
>Betreff: [JDBC] Testcase for bytea datatype
>
>
>* Uwe Kubosch (donv@crusaders.no) wrote:
>> OK, tried it.  buffer is 5527 bytes.  The
>PGbytea.toBytes(buffer) call
>> returned an array of size 5485.  Original file size was 4342 bytes.
>
>I don't know what it is that is wrong. But I have made a test
>case, to test the database with bytea field. The test passes
>fine here. Although the default testdata is build.xml the test
>passes here with binary data too.
>
>JDBC maintainers: Can you add this test case to the distribution?
>
>
>Anders
>
>--
>Anders Hermansen
>YoYo Mobile as
>


pgsql-jdbc by date:

Previous
From: "Dirk Bromberg"
Date:
Subject: setBinary getBinary not the same
Next
From: Anders Hermansen
Date:
Subject: Re: Testcase for bytea datatype