mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +09:00
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:
parent
63c57c4a6d
commit
0cf19a5fcf
1 changed files with 5 additions and 0 deletions
|
|
@ -63,6 +63,11 @@
|
||||||
$table_xml = FileHandler::readFile($table_file);
|
$table_xml = FileHandler::readFile($table_file);
|
||||||
$table_obj = parent::parse($table_xml);
|
$table_obj = parent::parse($table_xml);
|
||||||
if($table_obj->table) {
|
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) {
|
foreach($table_obj->table->column as $k => $v) {
|
||||||
$buff .= sprintf('$output->column_type["%s"] = "%s";%s', $v->attrs->name, $v->attrs->type, "\n");
|
$buff .= sprintf('$output->column_type["%s"] = "%s";%s', $v->attrs->name, $v->attrs->type, "\n");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue