column절이 하나만 있는 경우 array에 넣도록 수정 - 일반 QueryParser를 항상 array로 넣도록 수정할 필요가 있는지 검토해야함.


git-svn-id: http://xe-core.googlecode.com/svn/sandbox@4454 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
haneul 2008-08-24 17:17:49 +00:00
parent 63c57c4a6d
commit 0cf19a5fcf

View file

@ -63,6 +63,11 @@
$table_xml = FileHandler::readFile($table_file);
$table_obj = parent::parse($table_xml);
if($table_obj->table) {
if(isset($table_obj->table->column) && !is_array($table_obj->table->column))
{
$table_obj->table->column = array($table_obj->table->column);
}
foreach($table_obj->table->column as $k => $v) {
$buff .= sprintf('$output->column_type["%s"] = "%s";%s', $v->attrs->name, $v->attrs->type, "\n");
}