Fix bad parameters in I_LAST index clause

This commit is contained in:
Julien BLACHE 2011-06-05 11:04:57 +02:00
parent de4d5d0f4c
commit 759cc55b0f

View File

@ -666,7 +666,7 @@ db_build_query_index_clause(struct query_params *qp, char **i)
break;
case I_LAST:
idx = sqlite3_mprintf("LIMIT -1 OFFSET %d", qp->limit, qp->results - qp->limit);
idx = sqlite3_mprintf("LIMIT -1 OFFSET %d", qp->results - qp->limit);
break;
case I_SUB: