Forums / Developer / Code problem when fetching objects / Comment41828
Eirik Alfstad Johansen
Monday 22 November 2004 10:35:10 am
Thanks for your helpful advice, guys. After some extensive bug hunting and printing SQL queries, it turns out that the problem wasn't in the code I posted, but rather in the custom datatype upon which the attribute I was searching was built. The datatype missed the following method:
function &sortKeyType() { return 'string'; }
...causing the SQL query to search the sort_key_int field of the db table instead og sort_key_string.
Not an easy one to spot, that one. Thanks again for all your help!
PS. Kåre: You mentioned turning SQL output on? Is there an INI switch for this? If so, where is it located?
Sincerely, Eirik Alfstad Johansen http://www.netmaking.no/