Re: [HACKERS] create database doesn't work well in MULTIBYTE mode

From: Peter Eisentraut <e99re41(at)DoCS(dot)UU(dot)SE>
To: Hiroshi Inoue <Inoue(at)tpf(dot)co(dot)jp>
Cc: pgsql-hackers <pgsql-hackers(at)postgreSQL(dot)org>
Subject: Re: [HACKERS] create database doesn't work well in MULTIBYTE mode
Date: 2000-02-17 11:48:57
Message-ID: Pine.GSO.4.02A.10002171247310.2933-100000@Oxe.DoCS.UU.SE
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Good point. Thomas? ;)

As the one who wrote the seemingly correct code, I say revert this part.

On Thu, 17 Feb 2000, Hiroshi Inoue wrote:

> I have a crash while creating regression database in pararell
> regression test. Seems it's due to the following change.
>
> @@ -2638,7 +2705,14 @@
> n->dbname = $3;
> n->dbpath = $5;
> #ifdef MULTIBYTE
> - n->encoding = $6;
> + if ($6 != NULL) {
> + n->encoding = pg_char_to_encoding($6);
> + if (n->encoding < 0) {
> + elog(ERROR, "Encoding name '%s' is invalid", $6);
> + }
> + } else {
> + n->encoding = GetTemplateEncoding();
> + }
> #else
> n->encoding = 0;
> #endif
>
> Why ?
> $6 is an ival not an str.
>
> Regards.
>
> Hiroshi Inoue
> Inoue(at)tpf(dot)co(dot)jp
>
>
> ************
>
>

--
Peter Eisentraut Sernanders vaeg 10:115
peter_e(at)gmx(dot)net 75262 Uppsala
http://yi.org/peter-e/ Sweden

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2000-02-17 12:00:17 Re: [HACKERS] Date/time types: big change
Previous Message Peter Eisentraut 2000-02-17 11:25:16 Re: [HACKERS] psql password prompt