Merge pull request #1929 from MPOS/fix-hard-coded-table

[FIX] Remove static table reference
This commit is contained in:
Sebastian Grewe 2014-03-12 11:53:37 +01:00
commit af3f164daa

View File

@ -469,7 +469,7 @@ class Statistics extends Base {
share_id,
IF(difficulty = 0, POW(2, (" . $this->config['difficulty'] . " - 16)), difficulty) AS difficulty,
username
FROM shares_archive
FROM " . $this->share->getArchiveTableName() . "
WHERE time > DATE_SUB(now(), INTERVAL ? SECOND) AND our_result = 'Y'
) AS t1
LEFT JOIN " . $this->user->getTableName() . " AS a