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

From Anders Hermansen
Subject Re: Testcase for bytea datatype
Date
Msg-id 20030304203817.GA28605@online.no
Whole thread Raw
In response to Re: Testcase for bytea datatype  ("Dirk Bromberg" <bromberg@tzi.de>)
List pgsql-jdbc
* Dirk Bromberg (bromberg@tzi.de) wrote:
> 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!!

Please read what I wrote:
<quote>
Although the default testdata is build.xml the test
passes here with binary data too.
</quote>

I let it default with build.xml so it should be easier for JDBC
maintainers to intergrate the test into the distribution.

But I have some more information about the failures, I can now reproduce it
here too. If I create the database with encoding SQLASCII the tests run
fine, if I create it with UNICODE the tests run fine. But if I create it
with ISO-8859-1 the test fails, complaining that more bytes than there
should be is available from the db.

In short, to reproduce the problem you need to:
Create the test database with ISO-8859-1 encoding and run my testcase
with a binary file (not the default build.xml).

I hope this helps to further solve the problem.


Anders

--
Anders Hermansen
YoYo Mobile as

pgsql-jdbc by date:

Previous
From: "Dirk Bromberg"
Date:
Subject: Re: Testcase for bytea datatype
Next
From: "Dirk Bromberg"
Date:
Subject: Re: Testcase for bytea datatype