On 1/23/07 11:21 PM, Praveen Ray wrote:
> How would I make RDBO inflate a particular column to a user defined class?
> Instead of the built-in? For example, I'd like a BYTEA column to be inflated
> into my own class. I'm guessing somewhere in the $meta->setup call, I should
> be able to specify it
How would I make RDBO inflate a particular column to a user defined class?
Instead of
the built-in? For example, I'd like a BYTEA column to be inflated into my own
class.
I'm guessing somewhere in the $meta->setup call, I should be able to specify it
but
didn't find an example to do it.
thanks
On 1/23/07, David Naughton <[EMAIL PROTECTED]> wrote:
> I prefer to set mysql_enable_utf8 in the connect options based on this
> from the DBD::mysql docs
> http://search.cpan.org/dist/DBD-mysql/lib/DBD/mysql.pm>:
>
> "Additionally, turning on this flag tells MySQL that incoming data should
> be tre
On Tue, Jan 23, 2007 at 11:41:35AM -0500, John Siracusa wrote:
> On 1/23/07, Adrian Howard <[EMAIL PROTECTED]> wrote:
> > On 23 Jan 2007, at 16:00, David Naughton wrote:
> > [snip]
> >> The docs say that mysql_enable_utf8 is an "object method", and you're
> >> calling it as a class method.
> >
> >
On 1/23/07, Adrian Howard <[EMAIL PROTECTED]> wrote:
> On 23 Jan 2007, at 16:00, David Naughton wrote:
> [snip]
>> The docs say that mysql_enable_utf8 is an "object method", and you're
>> calling it as a class method.
>
> D'oh! I missed the subheading. Obviously need more coffee :)
>
>> In order to
On 23 Jan 2007, at 16:00, David Naughton wrote:
[snip]
> The docs say that mysql_enable_utf8 is an "object method", and you're
> calling it as a class method.
D'oh! I missed the subheading. Obviously need more coffee :)
> In order to enable utf8 for all
> connections, try this:
>
> __PACKAGE__->
On Tue, Jan 23, 2007 at 03:10:08PM +, Adrian Howard wrote:
> I want all of my MySQL database connections to have mysql_enable_utf8
> set. From the docs I expected something like:
>
>
> package My::DB;
> use base qw( Rose::DB );
>
> __PACKAGE__->use_private_registry;
>
> __PACKAGE__->r
I want all of my MySQL database connections to have mysql_enable_utf8
set. From the docs I expected something like:
package My::DB;
use base qw( Rose::DB );
__PACKAGE__->use_private_registry;
__PACKAGE__->register_db(
domain => 'test',
type => 'main',
driver => 'mys