Re: [Maypole] Incorrect sorting on columns starting with upper case letter

2006-04-18 Thread Aaron Trevena
On 18/04/06, Dave Howorth <[EMAIL PROTECTED]> wrote: > Kim Ryan wrote: > > OK, now I know that lower case names are expected. This problem > > came up when a user was adding a Maypole front end to an existing > > database that had columns with upper case names. There will be > > situations like t

Re: [Maypole] Incorrect sorting on columns starting with upper case letter

2006-04-18 Thread Dave Howorth
Kim Ryan wrote: OK, now I know that lower case names are expected. This problem came up when a user was adding a Maypole front end to an existing database that had columns with upper case names. There will be situations like this where you cannot alter the database schema. CDBI has good facil

Re: [Maypole] Incorrect sorting on columns starting with upper case letter

2006-04-17 Thread Kim Ryan
Thanks Aaron, OK, now I know that lower case names are expected. This problem came up when a user was adding a Maypole front end to an existing database that had columns with upper case names. There will be situations like this where you cannot alter the database schema. I added a section on c

Re: [Maypole] Incorrect sorting on columns starting with upper case letter

2006-04-13 Thread Peter Speltz
On 4/13/06, Peter Speltz <[EMAIL PROTECTED]> wrote: > funny , I just ran accross this piece of code today and thought to > myself, "Thats a good comment" :) > > __PACKAGE__->connection("dbi:mysql:database=$db;host=$host", $usr, > $pw,{FetchHashKeyName => 'NAME',}); > # NOTE need to specify

Re: [Maypole] Incorrect sorting on columns starting with upper case letter

2006-04-13 Thread Peter Speltz
funny , I just ran accross this piece of code today and thought to myself, "Thats a good comment" :) __PACKAGE__->connection("dbi:mysql:database=$db;host=$host", $usr, $pw,{FetchHashKeyName => 'NAME',}); # NOTE need to specify NAME above since the old tables use mixed case col names. Try

Re: [Maypole] Incorrect sorting on columns starting with upper case letter

2006-04-13 Thread Dave Howorth
Kim Ryan wrote: The odd thing is if I remove these lines to display all columns, the sorting works correctly. The beer example uses all lower case column names, could not find any examples of people using column names starting with upper case. Column-name case-sensitivity is database dependent

Re: [Maypole] Incorrect sorting on columns starting with upper case letter

2006-04-13 Thread Aaron Trevena
Hi Kim > I don't specifically refer to the Place column in the template, > just use the generic factory templates. Because I don't want to > display all columns in the table I have the following code: > > package Verification::MyData; > sub display_columns > { > qw( > Name > Place >

Re: [Maypole] Incorrect sorting on columns starting with upper case letter

2006-04-12 Thread Kim Ryan
Hi Aaron, I don't specifically refer to the Place column in the template, just use the generic factory templates. Because I don't want to display all columns in the table I have the following code: package Verification::MyData; sub display_columns { qw( Name Place ) } sub column_name

[Maypole] Incorrect sorting on columns starting with upper case letter

2006-04-12 Thread Kim Ryan
I normally use all lower case letters for my column names and both ascending and descending column sorts work fine in lists. I noticed problems when the column name starts with an upper case letter. For example, I have a column called Place, mytable/list/?order=Place&page=1 , does not return cor