QueryMaker issues

Casey Link unnamedrambler at gmail.com
Wed Aug 27 13:57:12 CEST 2008


2008/8/27 Daniel Winter <dw at danielwinter.de>:
> On Wednesday 27 August 2008 13:31:10 William Viana wrote:
>> I wanted to use QueryMaker to get the latest albums added to the collection
>> but I ran into an issue using the orderBy function.
>>
>> This is the code: http://amarok.pastebin.com/m5c05bd3f
>> and this is the error I get: http://amarok.pastebin.com/d531a1dcc
>>
>> I've tried to order by other values and it worked.
>>
>> I'm a little bit lost in the QueryMaker stuff, so if anybody can give me a
>> clue of why this is happening or how to do things correctly I would
>> appreciate it.
>
> Hi,
>
> well the problem direct in the code of th QueryMaker is that
> SqlQueryMaker::nameForValue()  (benutzt von orderBy() )  für valCreateDate
> nichts brauchbares zurückgibt.
>
> Der Grund dafür liegt glaube ich (schau dir mal die Datenbankstruktur an)
> daran, dass dieser Wert in der SQL Datenbank garnicht gespeichert wird?
>
>  Wird er das doch musst nur nur in der nameForValue eben nen case dafür
> hinzufügen. Andernfalls musst du die DB zusätzlich entsprechend erweitern.
>
> DanielW

Haha, Daniel.. you started in English and ended in German.

Casey


More information about the Amarok-devel mailing list