[FIX] Removed blocks JOIN on archive query

This commit is contained in:
Sebastian Grewe 2013-11-20 07:43:09 +01:00
parent ffc39f855d
commit b0cdbd54bc

View File

@ -36,8 +36,6 @@ class Transaction extends Base {
public function setArchived($account_id, $txid) {
$stmt = $this->mysqli->prepare("
UPDATE $this->table AS t
LEFT JOIN " . $this->block->getTableName() . " AS b
ON b.id = t.block_id
SET t.archived = 1
WHERE archived = 0 AND t.account_id = ? AND t.id <= ?
");