"Vitali Stupin" <Vitali(dot)Stupin(at)ria(dot)ee> writes:
> If database uses UTF8 encoding, then spi_exec_query in plperl should return
> query results in UTF8 encoding. But unfortunately only data is marked as
> UTF8, while column names are not.
It looks to me like basically everywhere in plperl.c that does newSVpv()
should follow it with
#if PERL_BCDVERSION >= 0x5006000L
if (GetDatabaseEncoding() == PG_UTF8)
whereas currently there are only a couple of places that do that.
I'm tempted to consolidate this into a function on the order of
newSVstring(const char *) or some such. Comments?
regards, tom lane
In response to
pgsql-hackers by date
|Next:||From: Bruce Momjian||Date: 2006-10-15 03:10:21|
|Subject: Re: [HACKERS] large object regression tests|
|Previous:||From: Sean Davis||Date: 2006-10-15 00:00:31|
|Subject: Re: Problems building 8.2beta1 on macos G5 xserve|
pgsql-bugs by date
|Next:||From: Greg Sabino Mullane||Date: 2006-10-15 17:34:21|
|Subject: Re: BUG #2683: spi_exec_query in plperl returns column names which are not marked as UTF8|
|Previous:||From: Tom Lane||Date: 2006-10-13 20:43:33|
|Subject: Re: BUG #2691: Server did not start. Error: Could not create log file. |