Re: PostgreSQL driver DBD::Pg releases version 3.0.0

Ron Savage <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.dbi.general
Message-ID <[email protected]>
Hi David

On 08/02/14 03:45, David E. Wheeler wrote:
> On Feb 7, 2014, at 3:59 AM, Peter J. Holzer <[email protected]> wrote:
>
>>> o Decoding incoming data
>>> $$item{$_} = decode('utf-8', $$item{$_} || '') for keys %$item
>>
>> Same here. With pg_enable_utf8 I would expect to get character strings,
>> not byte strings, so no decode should be necessary.

Yes, true.

More: http://savage.net.au/Ron/html/Debian.MariaDB.Perl.DBD.mysql.html

The demo uses MySQL, Pg and SQLite.

> With 3.0.0, if you have your client_encoding set to UTF-8, you can delete the call to pg_enable_utf8 and it will DTRT.

I did not try that.

> This has been a long time coming, but most welcome.

Indeed.

-- 
Ron Savage
http://savage.net.au/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.