Subject: | [PATCH] DBIx::Class::UTF8Columns doesn't decode value. |
Date: | Mon, 8 Feb 2010 09:42:16 +0900 |
To: | bug-DBIx-Class [...] rt.cpan.org |
From: | Hiroshi Sumita <sumita12 [...] gmail.com> |
Hello DBIx-Class comunity.
I'm Hiroshi Sumita.
I found a bug in DBIx::Class::UTF8Columns.
Data is NOT decoded since _is_utf8_column function don't work well.
This is Patch for DBIx/Class/UTF8Columns.pm
===============PATCH=================
117c117
< return (shift->utf8_columns || {})->{shift};
---
Show quoted text
> return (shift->utf8_columns || {})->{shift()};
=====================================
->{shift} is understood as ->{"shift"} by perl compiler.
So we should replace it with ->{shift()}
DBIx::Class : 0.08117
perl : v5.10.1 built for i386-freebsd-thread-multi-64int
OS : FreeBSD 8.0-RELEASE-p2 i386
Best regards.
--
--------------------------------------
Tokyo Institute of Technology
Department of Electrical and Electronic Engineering
Furuya / Miyamoto Laboratory
Hiroshi Sumita
sumita12@gmail.com
--------------------------------------