diff options
| author | xue <> | 2007-07-25 12:20:45 +0000 | 
|---|---|---|
| committer | xue <> | 2007-07-25 12:20:45 +0000 | 
| commit | 2116c42f90f674f62ef2d56e961ba9b7137b573d (patch) | |
| tree | fea890493b614a7f59c39d22039e5437a4bb37fe | |
| parent | 7049d603765133b596d4f00380982528003f2616 (diff) | |
Fixed an empty IN bug.
| -rw-r--r-- | framework/Data/DataGateway/TDataGatewayCommand.php | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/framework/Data/DataGateway/TDataGatewayCommand.php b/framework/Data/DataGateway/TDataGatewayCommand.php index 60db80d6..87dd83ef 100644 --- a/framework/Data/DataGateway/TDataGatewayCommand.php +++ b/framework/Data/DataGateway/TDataGatewayCommand.php @@ -204,6 +204,8 @@ class TDataGatewayCommand extends TComponent  	public function getIndexKeyCondition($table,$fields,$values)
  	{
 +		if (!count($values))
 +			return 'FALSE';
  		$columns = array();
  		$tableName = $table->getTableFullName();
  		foreach($fields as $field)
 | 
