Re: Mixed Case Column Names

[prev] [thread] [next] [Date index for 2005/04/14]

From: Tony Bowden
Subject: Re: Mixed Case Column Names
Date: 17:34 on 14 Apr 2005
On Thu, Apr 14, 2005 at 03:26:00PM +0100, Jay Hargreaves wrote:
> When I query the columns that are contained in the table:
> my @columns = TPG_Staging->columns;
> I receive a list of the columns as expected but with all the the names 
> in lower case. 

No you don't. You receive a list of Class::DBI::Column objects.

These are overloaded so that they stringify to the name of the column in
lower case. 

You can, however, ask them for their name, as given, with the name()
method.

So, for example, you could have:

  sub all_column_names { map $_->name, shift->columns }

Tony

Mixed Case Column Names
Jay Hargreaves 14:26 on 14 Apr 2005

Re: Mixed Case Column Names
Jay Hargreaves 14:40 on 14 Apr 2005

Re: Mixed Case Column Names
Dana Hudes 14:50 on 14 Apr 2005

Re: Mixed Case Column Names
Kingsley Kerce 14:54 on 14 Apr 2005

Re: Mixed Case Column Names
Jay Hargreaves 15:45 on 14 Apr 2005

Re: Mixed Case Column Names
Daniel Wijnands 14:51 on 14 Apr 2005

Re: Mixed Case Column Names
Tony Bowden 17:34 on 14 Apr 2005

Generated at 12:49 on 16 Apr 2005 by mariachi v0.52