Home > Archive > Slony1 PostgreSQL Replication > July 2005 > Re: encoding=UNICODE db have same chinese handle









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: encoding=UNICODE db have same chinese handle
Ian Burrell

2005-07-26, 8:25 pm

On 7/25/05, Sun.betty <alanxzq@yahoo.com.cn> wrote:
> in addition , I test for
> createdb -E UNICODE test
> master and slave as the same.
> export PGCLIENTENCODING=UNI
CODE
> I find as the same question.
> at master :
> insert into T_NUM_CENTER (TYPE , CURRVAL , CURRDATE , MEMO) values
> ('东秘密米米' , 1 , now() , '东东东');
> at slave
> select * from T_NUM_CENTER ;
> type | currval | currdate | memo
> ------------+---------+------------+------------------------
> 东秘密米 | 1 | 2005-07-25 | 东东东


That is the sympton of the bug. The bug in the trigger truncates
strings with multi-byte characters. It ends up removing one byte for
each multi-byte character in the strings. My guess is that this was
enough to remove the last Chinese character.

- Ian
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com