aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/Updater/UpdateFetcher.cpp
diff options
context:
space:
mode:
authorNaios <naios-dev@live.de>2015-03-22 01:28:50 +0100
committerNaios <naios-dev@live.de>2015-03-22 01:28:50 +0100
commit8e48ef7863c5018aa185913ce6a616e46ef5b17e (patch)
tree91ce5294560649151a5a90ddf13e8901a8a89379 /src/server/shared/Updater/UpdateFetcher.cpp
parent3799d454b36ef55148280311e8f096e877d12be8 (diff)
Core/DBUpdater: Use correct uint64 to store timestamps.
* Thanks @Shauren for pointing out. * Also removes an invalid argument thanks @jackpoz for noticing.
Diffstat (limited to 'src/server/shared/Updater/UpdateFetcher.cpp')
-rw-r--r--src/server/shared/Updater/UpdateFetcher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/shared/Updater/UpdateFetcher.cpp b/src/server/shared/Updater/UpdateFetcher.cpp
index 8084c6ba37f..63e820c3de5 100644
--- a/src/server/shared/Updater/UpdateFetcher.cpp
+++ b/src/server/shared/Updater/UpdateFetcher.cpp
@@ -119,7 +119,7 @@ UpdateFetcher::AppliedFileStorage UpdateFetcher::ReceiveAppliedFiles() const
{
AppliedFileStorage map;
- QueryResult result = _retrieve("SELECT `name`, `hash`, `state`, `timestamp` FROM `updates` ORDER BY `name` ASC");
+ QueryResult result = _retrieve("SELECT `name`, `hash`, `state`, UNIX_TIMESTAMP(`timestamp`) FROM `updates` ORDER BY `name` ASC");
if (!result)
return map;
@@ -128,7 +128,7 @@ UpdateFetcher::AppliedFileStorage UpdateFetcher::ReceiveAppliedFiles() const
Field* fields = result->Fetch();
AppliedFileEntry const entry = { fields[0].GetString(), fields[1].GetString(),
- AppliedFileEntry::StateConvert(fields[2].GetString()), fields[3].GetUInt32() };
+ AppliedFileEntry::StateConvert(fields[2].GetString()), fields[3].GetUInt64() };
map.insert(std::make_pair(entry.name, entry));
}