Fix bad parameters in I_LAST index clause
This commit is contained in:
parent
de4d5d0f4c
commit
759cc55b0f
2
src/db.c
2
src/db.c
|
@ -666,7 +666,7 @@ db_build_query_index_clause(struct query_params *qp, char **i)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case I_LAST:
|
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;
|
break;
|
||||||
|
|
||||||
case I_SUB:
|
case I_SUB:
|
||||||
|
|
Loading…
Reference in New Issue