From a4436790addbb8d23268c3c62c877f90d89ab1d9 Mon Sep 17 00:00:00 2001 From: ysnglee2000 Date: Fri, 11 Dec 2009 04:23:26 +0000 Subject: [PATCH] =?UTF-8?q?#18293376=20:=202=EC=B0=A8=20=EC=88=98=EC=A0=95?= =?UTF-8?q?.=20=EC=8B=9C=ED=97=98=20=ED=95=84=EC=9A=94.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7027 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBCubrid.class.php | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/classes/db/DBCubrid.class.php b/classes/db/DBCubrid.class.php index 0110a28a4..3fff00797 100644 --- a/classes/db/DBCubrid.class.php +++ b/classes/db/DBCubrid.class.php @@ -422,18 +422,18 @@ $pipe = $v['pipe']; $value = $this->getConditionValue($name, $value, $operation, $type, $column_type); - if(!$value) { - $value = $v['value']; - if (strpos ($value, '(')) $valuetmp = $value; - elseif (strpos ($value, ".") === false) $valuetmp = $value; - else $valuetmp = '"'.str_replace('.', '"."', $value).'"'; - } else $valuetmp = $value; - if (strpos ($name, '(')) $nametmp = $name; - elseif (strpos ($name, ".") === false) $nametmp = '"'.$name.'"'; - else $nametmp = '"'.str_replace('.', '"."', $name).'"'; + if (!$value) { + $value = $v['value']; + if (strpos ($value, '(')) $valuetmp = $value; + elseif (strpos ($value, ".") === false) $valuetmp = $value; + else $valuetmp = '"'.str_replace('.', '"."', $value).'"'; + } else $valuetmp = $value; + if (strpos ($name, '(') > 0) $nametmp = $name; + elseif (strpos ($name, ".") === false) $nametmp = '"'.$name.'"'; + else $nametmp = '"'.str_replace('.', '"."', $name).'"'; $str = $this->getConditionPart($nametmp, $valuetmp, $operation); - if($sub_condition) $sub_condition .= ' '.$pipe.' '; - $sub_condition .= $str; + if ($sub_condition) $sub_condition .= ' '.$pipe.' '; + $sub_condition .= $str; } if($sub_condition) { if($condition && $val['pipe']) $condition .= ' '.$val['pipe'].' '; @@ -617,8 +617,8 @@ foreach($left_tables as $key => $val) { $condition = $this->_getCondition($output->left_conditions[$key],$output->column_type); - if($condition){ - $left_join[] = $val . ' "'.$this->prefix.$output->_tables[$key].'" "'.$key . '" on (' . $condition . ')'; + if($condition) { + $left_join[] = $val.' "'.$this->prefix.$output->_tables[$key].'" "'.$key.'" on ('.$condition.')'; } }