Bug#318058: works fine under libdbd-mysql-perl 4.008-1 in unstable
Alex Muntada
alexm at alexm.org
Wed Apr 15 21:24:34 UTC 2009
* WK <wk at hot.ee> wrote:
> I think you are right, but i'm just confused now.
> I used the first one, but i tried like this:
>
> my $dbh = DBI->connect($data_source, $user, $password)
> || die "no connection\n";
> $dbh->{mysql_enable_utf8} = 1;
Please, read what the docs for DBD::mysql say about this:
"This will only take effect if used as part of the call to connect().
If you turn the flag on after connecting, you will need to issue
the command SET NAMES utf8 to get the same effect."
> One thing i can suggest: maybe this option (mysql_enable_utf8)
> could be enabled automatically when database is in UTF8.
Having the Debian module work in a different way that the one
upstream would be a Bad Thing, in my opinion. So I guess that
the best place to suggest such a change would be upstream:
http://rt.cpan.org/Public/Dist/Display.html?Name=DBD-mysql
Happy hacking!
--
Alex Muntada <alexm at alexm.org>
http://alexm.org/
More information about the pkg-perl-maintainers
mailing list