removed debugging & smaller bugs

This commit is contained in:
Steffen Vogel 2011-03-14 16:18:03 +01:00
parent e5a9b706b2
commit 73255c6698
2 changed files with 1 additions and 5 deletions

View file

@ -57,7 +57,7 @@ class DataIterator implements \Iterator, \Countable {
if ($this->rowCount > $this->tupleCount) {
$this->packageSize = floor($this->rowCount / $this->tupleCount);
$this->tupleCount = floor($this->rowCount / $this->packageSize) + $this->rowCount % $this->packageSize;
$this->tupleCount = floor($this->rowCount / $this->packageSize) + 1;
}
else {
$this->packageSize = 1;
@ -80,7 +80,6 @@ class DataIterator implements \Iterator, \Countable {
}
$this->key++;
Util\Debug::log('key++', $this->key);
return $this->current = $package;
}

View file

@ -110,9 +110,6 @@ abstract class Interpreter {
// query for data
$stmt = $this->conn->executeQuery('SELECT ' . $sql['fields'] . $sql['from'] . $sql['where'] . $sql['groupBy'] . $sql['orderBy'], array($this->channel->getId()));
Util\Debug::log('rowcount', $this->rowCount);
Util\Debug::log('tuplecount', $this->tupleCount);
return new DataIterator($stmt, $this->rowCount, $this->tupleCount);
}