From 1dd72d7a851fa16dac1bc81317546f59b46abd71 Mon Sep 17 00:00:00 2001 From: rokmcssu Date: Thu, 26 Jul 2007 05:11:43 +0000 Subject: [PATCH] =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EA=B4=80=EB=A6=AC=20?= =?UTF-8?q?=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=98=A4=EB=A5=98=20=EB=B0=9C?= =?UTF-8?q?=EC=83=9D=20=EC=88=98=EC=A0=95=20=ED=85=8C=EC=9D=B4=EB=B8=94/?= =?UTF-8?q?=EC=BB=AC=EB=9F=BC=20=EC=A1=B4=EC=9E=AC=20=EC=97=AC=EB=B6=80=20?= =?UTF-8?q?=ED=8C=90=EB=8B=A8=20=EC=BF=BC=EB=A6=AC=20=EB=B2=84=EA=B7=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/trunk@2025 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBCubrid.class.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/classes/db/DBCubrid.class.php b/classes/db/DBCubrid.class.php index c39d19567..830974d5d 100644 --- a/classes/db/DBCubrid.class.php +++ b/classes/db/DBCubrid.class.php @@ -193,7 +193,7 @@ * @brief 테이블 기생성 여부 return **/ function isTableExists($target_name) { - $query = sprintf("select * from db_attribute where class_name = '%s%s'", $this->prefix, $this->addQuotes($target_name)); + $query = sprintf("select * from db_class where class_name = '%s%s'", $this->prefix, $target_name); $result = $this->_query($query); if(cubrid_num_rows($result)>0) $output = true; @@ -223,7 +223,8 @@ * @brief 특정 테이블의 column의 정보를 return **/ function isColumnExists($table_name, $column_name) { - $query = sprintf("select %s from db_attribute where class_name = '%s%s'", $column_name, $this->prefix, $table_name); + $query = sprintf("select * from db_attribute where attr_name ='%s' and class_name = '%s%s'", + $column_name, $this->prefix, $table_name); $result = $this->_query($query); if(cubrid_num_rows($result)>0) $output = true; else $output = false;