From 8f3dbfd7ca9cf1183ee455bc563508762b956d87 Mon Sep 17 00:00:00 2001 From: taggon Date: Fri, 11 Feb 2011 08:19:56 +0000 Subject: [PATCH] =?UTF-8?q?#19461339=20=ED=81=90=EB=B8=8C=EB=A6=AC?= =?UTF-8?q?=EB=93=9C=20DB=20=ED=81=B4=EB=9E=98=EC=8A=A4=EC=9D=98=20?= =?UTF-8?q?=EB=85=BC=EB=A6=AC=EC=A0=81=EC=9D=B8=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=EC=88=98=EC=A0=95(thanks=20to=20misol)?= 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@8092 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- classes/db/DBCubrid.class.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/classes/db/DBCubrid.class.php b/classes/db/DBCubrid.class.php index 682e271f1..b8ca3848d 100644 --- a/classes/db/DBCubrid.class.php +++ b/classes/db/DBCubrid.class.php @@ -457,6 +457,9 @@ // 테이블 생성 schema 작성 $table_name = $xml_obj->table->attrs->name; + // if the table already exists exit function + if ($this->isTableExists($table_name)) return; + // 만약 테이블 이름이 sequence라면 serial 생성 if ($table_name == 'sequence') { $query = sprintf ('create serial "%s" start with 1 increment by 1'. @@ -466,7 +469,6 @@ return $this->_query($query); } - if ($this->isTableExists ($table_name)) return; $table_name = $this->prefix.$table_name;