summaryrefslogtreecommitdiff
path: root/framework/Data
diff options
context:
space:
mode:
authorxue <>2007-07-25 12:20:45 +0000
committerxue <>2007-07-25 12:20:45 +0000
commit2116c42f90f674f62ef2d56e961ba9b7137b573d (patch)
treefea890493b614a7f59c39d22039e5437a4bb37fe /framework/Data
parent7049d603765133b596d4f00380982528003f2616 (diff)
Fixed an empty IN bug.
Diffstat (limited to 'framework/Data')
-rw-r--r--framework/Data/DataGateway/TDataGatewayCommand.php2
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)