Subject: | Identify Other Types as UTF-8? |
Date: | Mon, 20 Oct 2008 09:37:43 -0700 |
To: | bug-DBD-Pg [...] rt.cpan.org |
From: | "David E. Wheeler" <dwheeler [...] cpan.org> |
Howdy,
I need to be able to identify types other than the core text, varchar,
and char types as UTF-8. For example, the citext module, due to be in
contrib in 8.4, is a case-insensitive text type. I plan to use it a
lot in my apps. Is it possible to tell DBD::Pg that it's UTF-8, and
thus subject to whatever handling pg_enable_utf8 does? If it's not, I
could really use that feature -- I'd likely use it for domains and
enums, too.
Maybe something like this?
pg_enable_utf8 => [qw(citext seasons)],
Here I'm passing in the names of the types to consider to be UTF-8:
citext and an enum representing seasons of the year.
Thoughts?
Thanks,
David