]> Some of my projects - localmylist.git/commitdiff
The results of getFileLocationBatch should be ordered.
authorAPTX <marek321@gmail.com>
Thu, 25 Apr 2013 01:55:48 +0000 (03:55 +0200)
committerAPTX <marek321@gmail.com>
Thu, 25 Apr 2013 01:55:48 +0000 (03:55 +0200)
localmylist/database.cpp

index 6e6a97e0561c58310864cc537e1ccceb5652c6b8..0bab851d232f9e00f30b2f4666eee521af1115c1 100644 (file)
@@ -357,6 +357,7 @@ QList<FileLocation> Database::getFileLocationBatch(int startLocationId, int limi
        "       FROM file_location fl "
        "       WHERE location_id >= :startLocationId "
        "               AND host_id = :hostId "
+       "       ORDER BY location_id ASC "
        "       LIMIT :limit "
        ).arg(fileLocationFields()));