mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 09:52:17 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7269 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
58258f76db
commit
8c03ae8cca
1 changed files with 9 additions and 1 deletions
|
|
@ -324,10 +324,18 @@
|
|||
foreach($tmp as $key => $val) {
|
||||
$type = $output->column_type[$key];
|
||||
|
||||
// type 값이 null 일때는 $key값이 alias인 경우라 실제 column 이름을 찾아 type을 구함
|
||||
if($type == null) {
|
||||
foreach($output->columns as $cols) {
|
||||
if($cols['alias'] == $key) {
|
||||
$type = $output->column_type[$cols['name']];
|
||||
// table.column 형식인지 정규식으로 검사 함
|
||||
preg_match("/\w+[.](\w+)/", $cols['name'], $matches);
|
||||
if($matches) {
|
||||
$type = $output->column_type[$matches[1]];
|
||||
}
|
||||
else {
|
||||
$type = $output->column_type[$cols['name']];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue