2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-09-02 23:15:20 +00:00

[3968] Added ASC sorting for indexes by expiration.

This commit is contained in:
Marcin Siodelski
2015-10-15 21:48:01 +02:00
parent e7fd02a54c
commit 640d3538c0
4 changed files with 8 additions and 8 deletions

View File

@@ -143,7 +143,7 @@ TaggedStatement tagged_statements[] = {
"state "
"FROM lease4 "
"WHERE state != ? AND expire < ? "
"ORDER BY expire "
"ORDER BY expire ASC "
"LIMIT ?"},
{MySqlLeaseMgr::GET_LEASE6_ADDR,
"SELECT address, duid, valid_lifetime, "
@@ -182,7 +182,7 @@ TaggedStatement tagged_statements[] = {
"state "
"FROM lease6 "
"WHERE state != ? AND expire < ? "
"ORDER BY expire "
"ORDER BY expire ASC "
"LIMIT ?"},
{MySqlLeaseMgr::GET_VERSION,
"SELECT version, minor FROM schema_version"},