Re: Re: column types and bind_param

[prev] [thread] [next] [Date index for 2004/09/27]

From: tina.2003
Subject: Re: Re: column types and bind_param
Date: 15:03 on 27 Sep 2004
(hope my realname appears this time)

On Mon, 27 Sep 2004, Tony Bowden wrote:

> On Mon, Sep 27, 2004 at 01:06:01PM +0100, tina.2003@xxxxxx.xx wrote:
> > I wonder if it's possible to add the possibility to declare data types
> > with Class::DBI.
> 
> It's already there, it's just not documented:
> 
>   Class->data_type(column => DBI:SQL_BINARY);

oh cool! thank you.

but can I also retrieve it?
if I do:
  Class->data_type(cid => "INTEGER");
  my $type = Class->data_type("cid");
i get a 0.

I can do
  my $type = Class->__data_type()->{cid};
but i hesitate to use a method with underscores =)

regards,
tina

Re: column types and bind_param
Tony Bowden 14:37 on 27 Sep 2004

Re: Re: column types and bind_param
tina.2003 15:03 on 27 Sep 2004

Generated at 11:35 on 01 Dec 2004 by mariachi v0.52