ReggieB
IT Manager · Not a member
ReggieB's latest activity
Thursday, January 15 2009
-
ReggieB commented at 6:05 PMThat just says you need an ORDER BY clause, whereas in fact you need more than that - you need an ORDER BY clause that uniquely identifies and orders each recor...
-
ReggieB commented at 4:04 PMMy argument would be that it isn't the user who has chosen to flip the data back and forth. It is the way will_paginate processes the data that makes this an is...
Wednesday, January 14 2009
-
ReggieB created the ticket at 7:33 PMI think I have found a bug this time :o) . However, it may be a MS SQL only error as I haven't tested the problem with MySQL.
I have a table of "support cases" ...
Wednesday, December 24 2008
-
ReggieB commented at 12:23 PMWorking on the problem further, its the square brackets causing the problem. They are commonly used in MS SQL code, but ActiveRecord seems to behave differently...
-
ReggieB commented at 11:46 AMI've investigated this further and it is not a will_paginate bug. It's an active record bug. The same thing happens with a find :
class Opportunity def se...
Monday, December 22 2008
-
ReggieB commented at 2:33 PMI've also tried using paginate_by_sql:
sql = <<EOF SELECT [o].*, [c].[Comp_Name] AS company_name, [p].[Pers_Salutation] AS person_salutation, ... -
ReggieB commented at 2:29 PMSorry - didn't get the format syntax right.
My problem is that:
ORDER BY c.comp_namebecomes
ORDER BY c\.comp_nameMy code is
@opportunities ... -
ReggieB created the ticket at 2:24 PMI'm currently using Rails 2.1 and was using will_paginate 2.2.2. I've upgraded to mislav-will_paginate 2.3.6, but the problem persists. MS SQL 2005 database.
Th...