Here is an example
This works fine
I declare a list of tables to display with config->display_tables
sub MyDB::MyTable::display_columns
{
qw(
job_type
version
col_a
col_b)
}
This does not produce a warning, but reverts to displaying all columns in
alphabetical order, ignoring the display_column method
sub MyDB::my_table::display_columns
{
qw(
job_type
version
col_a
col_b)
}
regards,
Kim
Kieren Diment wrote:
On 21 Dec 2005, at 09:57, Kim Ryan wrote:
HI all,
I have a fairly large database and have used the naming convention of
some_table, another_column etc rather than SomeTable etc . This
doesn't cause any problems for the columns, but the underscore causes
grief with several maypole methods. Specifically, display columns
gets ignored and it defaults to alphabetical column order. I can
also see
that any table joins will probably need to join on names without
underscores in them.
Does Maypole and/or Class::DBI require camel cased (SomeTable etc).
database names to work correctly? I can change my entire schema to
this style quite easily.
I was under the impression that the opposite was the case that
this_is the preferred naming convention and that ThisWill get you
into trouble. Can you post some code to illustrate the problem?
Cheers
kd
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log
files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Maypole-users mailing list
Maypole-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/maypole-users