Re: [BUGS] BUG #1594: ResultSet.getBytes() vs db encoding latin1

2005-04-13 Thread Kris Jurka


On Tue, 12 Apr 2005, Pascal Lambert wrote:

> 
> Bug reference:  1594
> Logged by:  Pascal Lambert
> Email address:  [EMAIL PROTECTED]
> PostgreSQL version: 7.3.9
> Description:ResultSet.getBytes() vs db encoding latin1
> 
> The getBytes() method of the ResultSet didn't return the correct bytes. It
> can be reprodure easly with the following with a database using encoding
> LATIN1. But it work fine when using UNICODE encoding.

This is actually a server bug, not a driver bug.  The server is trying to
do client encoding conversion of binary data, which it shouldn't.  Are you
sure you are using version 7.3.9?  Here I have 7.3.0, 7.3.1, 7.3.2, and
7.3.9.  The only one that has that bug is 7.3.2.  I don't know when this
was fixed, but I have no trouble with 7.3.9.

Kris Jurka

---(end of broadcast)---
TIP 8: explain analyze is your friend


Re: [BUGS] BUG #1593: Problem with installation

2005-04-13 Thread Tajoddin Nezami
Hi Tom,

Thanks for your prompt reply. Eventually, I did manage to get it
cross-compile and install on the target and my initial tests show no
problems so far. I had to modify the timezone Makefile by hand to force
the ZICOBJS to compile using the host's native compiler (as localtime.o
is used in OBJS list I made the output file for zic to be tlocaltime.o).

Regards

Taj Nezami

-Original Message-
From: Tom Lane [mailto:[EMAIL PROTECTED] 
Sent: 12 April 2005 19:56
To: Tajoddin Nezami
Cc: pgsql-bugs@postgresql.org
Subject: Re: [BUGS] BUG #1593: Problem with installation 

"Taj Nezami" <[EMAIL PROTECTED]> writes:
> I have cross-compiled the PostgreSQL 8.0.2 on the Fedora Core-1 host
for my
> Intel-XScale based target running embedded Linux 2.4.26-vrs1, using
the
> following command sequences:

We don't really support cross-compilation at the moment.  There are
several AC_TRY_RUN tests in the configure script that may or may not
make the right guesses when cross-compiling, plus as you found out
there's at least one program that needs to be run during the
installation phase.

It shouldn't be too hard to copy over the zic program and its input
data files and run it on the target machine, but the existing Makefiles
won't help you with that :-(

On the whole I'd advise building on the target.  If it's got enough
oomph to run a database, it can surely run a compiler ...

regards, tom lane


This message has been scanned for viruses by MailController -
www.MailController.altohiway.com

---(end of broadcast)---
TIP 3: if posting/reading through Usenet, please send an appropriate
  subscribe-nomail command to [EMAIL PROTECTED] so that your
  message can get through to the mailing list cleanly