#19461339 큐브리드 DB 클래스의 논리적인 오류 수정(thanks to misol)

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@8092 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-02-11 08:19:56 +00:00
parent deb0b79931
commit 8f3dbfd7ca

View file

@ -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;