Re: Testcase for bytea datatype

From: Anders Hermansen <anders(at)yoyo(dot)no>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Testcase for bytea datatype
Date: 2003-03-04 20:38:17
Message-ID: 20030304203817.GA28605@online.no
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

* Dirk Bromberg (bromberg(at)tzi(dot)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

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dirk Bromberg 2003-03-04 20:45:34 Re: Testcase for bytea datatype
Previous Message Dirk Bromberg 2003-03-04 20:01:32 Re: Testcase for bytea datatype