diff options
author | godzilla80@gmx.net <> | 2010-02-13 15:37:13 +0000 |
---|---|---|
committer | godzilla80@gmx.net <> | 2010-02-13 15:37:13 +0000 |
commit | 00e8b2c1ac9463c2d108b8f534ac1d9317ae38f7 (patch) | |
tree | 13d5e0fccc9d165241b0a33198469a525ce67f18 /framework/Data/DataGateway/TDataGatewayCommand.php | |
parent | baf1e5edca626368154ec9e6e9b1ff9e39276f07 (diff) |
Fixed Issue #24 - Specify needed fields on demand
- modify TDbCommandBuilder in package System.Data.Common
- add method getSelectFieldList()
- modify createFindCommand() to utilize getSelectFieldList()
- modify createCountCommand() to invoke createFindCommand() with COUNT(*)
- modify package System.Data.DataGateway
- add property Select to TSqlCriteria
- modify TDataGatewayCommand::getFindCommand() to pass Select property of criteria to TDbCommandBuilder::createFindCommand()
Diffstat (limited to 'framework/Data/DataGateway/TDataGatewayCommand.php')
-rw-r--r-- | framework/Data/DataGateway/TDataGatewayCommand.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/framework/Data/DataGateway/TDataGatewayCommand.php b/framework/Data/DataGateway/TDataGatewayCommand.php index 22998033..e290f457 100644 --- a/framework/Data/DataGateway/TDataGatewayCommand.php +++ b/framework/Data/DataGateway/TDataGatewayCommand.php @@ -148,7 +148,8 @@ class TDataGatewayCommand extends TComponent $ordering = $criteria->getOrdersBy();
$limit = $criteria->getLimit();
$offset = $criteria->getOffset();
- $command = $this->getBuilder()->createFindCommand($where,$parameters,$ordering,$limit,$offset);
+ $select = $criteria->getSelect();
+ $command = $this->getBuilder()->createFindCommand($where,$parameters,$ordering,$limit,$offset,$select);
$this->onCreateCommand($command, $criteria);
return $command;
}
|