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