Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^2: DBIx::Class::Schema::Loader prob

by jfrm (Monk)
on Aug 24, 2006 at 13:10 UTC ( #569356=note: print w/replies, xml ) Need Help??


in reply to Re: DBIx::Class::Schema::Loader prob
in thread DBIx::Class::Schema::Loader prob

What the debugger did reveal is that the Loader seems to be changing the case of my column names. So while the following worked previously:

print "! ".$country->CountryCode." = ".$country->CountryName;

once the columns have been loaded with the Loader it fails but this works instead:

print "! ".$country->countrycode." = ".$country->countryname;

I thought this behaviour might be an option but I've looked all through DBIx::Class::Schema::Loader::Base documentation and can't see anything pertaining. Is this a bug or by design?

Replies are listed 'Best First'.
Re^3: DBIx::Class::Schema::Loader prob
by insaniac (Friar) on Aug 24, 2006 at 20:44 UTC
    I think this is because column names are not case sensitive in MySQL ;-) google reveals a lot ;-)

    to ask a question is a moment of shame
    to remain ignorant is a lifelong shame

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://569356]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (2)
As of 2022-05-21 07:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (76 votes). Check out past polls.

    Notices?