mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-21 04:09:55 +09:00
모듈 관리 페이지 오류 발생 수정
테이블/컬럼 존재 여부 판단 쿼리 버그 수정 git-svn-id: http://xe-core.googlecode.com/svn/trunk@2025 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
1dfad7bb76
commit
1dd72d7a85
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue