From e9486a539c3a43afcc129f647917780ffc1ed6cd Mon Sep 17 00:00:00 2001 From: wei <> Date: Tue, 8 May 2007 08:06:13 +0000 Subject: Fixed #458 --- framework/Data/SqlMap/Statements/TMappedStatement.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'framework/Data/SqlMap/Statements/TMappedStatement.php') diff --git a/framework/Data/SqlMap/Statements/TMappedStatement.php b/framework/Data/SqlMap/Statements/TMappedStatement.php index db02857f..3b935e7f 100644 --- a/framework/Data/SqlMap/Statements/TMappedStatement.php +++ b/framework/Data/SqlMap/Statements/TMappedStatement.php @@ -204,7 +204,7 @@ class TMappedStatement extends TComponent implements IMappedStatement public function executeQueryForList($connection, $parameter, $result=null, $skip=-1, $max=-1, $delegate=null) { $sql = $this->_command->create($this->_manager, $connection, $this->_statement, $parameter,$skip,$max); - return $this->runQueryForList($connection, $parameter, $sql, $result, $skip, $max, $delegate); + return $this->runQueryForList($connection, $parameter, $sql, $result, $delegate); } /** @@ -223,7 +223,7 @@ class TMappedStatement extends TComponent implements IMappedStatement * @return array a list of result objects * @see executeQueryForList() */ - public function runQueryForList($connection, $parameter, $sql, $result, $skip=-1, $max=-1, $delegate=null) + public function runQueryForList($connection, $parameter, $sql, $result, $delegate=null) { $registry=$this->getManager()->getTypeHandlers(); $list = $result instanceof ArrayAccess ? $result : @@ -274,9 +274,9 @@ class TMappedStatement extends TComponent implements IMappedStatement * @param callback row delegate handler * @return array An array of object containing the rows keyed by keyProperty. */ - public function executeQueryForMap($connection, $parameter, $keyProperty, $valueProperty=null, $delegate=null) + public function executeQueryForMap($connection, $parameter, $keyProperty, $valueProperty=null, $skip=-1, $max=-1, $delegate=null) { - $sql = $this->_command->create($this->_manager, $connection, $this->_statement, $parameter); + $sql = $this->_command->create($this->_manager, $connection, $this->_statement, $parameter, $skip, $max); return $this->runQueryForMap($connection, $parameter, $sql, $keyProperty, $valueProperty, $delegate); } -- cgit v1.2.3