Commit 60687dee authored by Francis Dupont's avatar Francis Dupont
Browse files

[#1247] Moved to pair comparison

parent 44e0cf8d
...@@ -213,7 +213,6 @@ MySqlConfigBackendImpl::getRecentAuditEntries(const int index, ...@@ -213,7 +213,6 @@ MySqlConfigBackendImpl::getRecentAuditEntries(const int index,
MySqlBindingCollection in_bindings = { MySqlBindingCollection in_bindings = {
MySqlBinding::createString(tag.get()), MySqlBinding::createString(tag.get()),
MySqlBinding::createTimestamp(modification_time), MySqlBinding::createTimestamp(modification_time),
MySqlBinding::createTimestamp(modification_time),
MySqlBinding::createInteger<uint64_t>(modification_id) MySqlBinding::createInteger<uint64_t>(modification_id)
}; };
......
...@@ -624,10 +624,8 @@ namespace { ...@@ -624,10 +624,8 @@ namespace {
" ON a.revision_id = r.id " \ " ON a.revision_id = r.id " \
"INNER JOIN " #table_prefix "_server AS s" \ "INNER JOIN " #table_prefix "_server AS s" \
" ON r.server_id = s.id " \ " ON r.server_id = s.id " \
"WHERE (s.tag = ? OR s.id = 1) AND" \ "WHERE (s.tag = ? OR s.id = 1) AND ((r.modification_ts, r.id) > (?, ?))" \
" ((r.modification_ts > ?) OR " \ " ORDER BY r.modification_ts, r.id"
" ((r.modification_ts = ?) AND (r.id > ?))) " \
"ORDER BY r.modification_ts, r.id"
#endif #endif
#ifndef MYSQL_GET_SERVERS_COMMON #ifndef MYSQL_GET_SERVERS_COMMON
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment