pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Alex Guryanow <gav@nlr.ru>
Cc: pgsq-odbc@postgresql.org
Cc: pgsql-general@postgresql.org
Subject: Re: Wrong string length from unicode database in Borland's app
Date: Sun, 21 Nov 2004 13:52:35 -0500
Message-ID: <9235.1101063155@sss.pgh.pa.us> (raw)
In-Reply-To: <118-60991984.20041121175609@nlr.ru>
References: <118-60991984.20041121175609@nlr.ru>

Alex Guryanow <gav@nlr.ru> writes:
> When pg-server is version 7.1.3 windows app works fine, but when
> pg-server is version 7.4.6 or 8.0beta4 under certain conditions the
> app receives strings with wrong lengths.

Are both servers set up with the same database encoding?  (Is the 7.1
server even compiled to support non-ASCII encodings?)

> But by executing the query
>     select volume, trim(number) from issue where mag_id = 25403;
> the datagrid component (that displays query's results) contains in
> second column values with length of 32769.

If you try the same query in plain psql, what do you get?  What is in
the wrong-length value, exactly?

			regards, tom lane



view thread (7+ messages)  latest in thread

Message-ID: <9235.1101063155@sss.pgh.pa.us>
Permalink:  ../9235.1101063155@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/9235.1101063155@sss.pgh.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: tgl@sss.pgh.pa.us, gav@nlr.ru, pgsq-odbc@postgresql.org, pgsql-general@postgresql.org
  Subject: Re: Wrong string length from unicode database in Borland's app
  In-Reply-To: <9235.1101063155@sss.pgh.pa.us>
  References: <118-60991984.20041121175609@nlr.ru> <9235.1101063155@sss.pgh.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox