git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7273 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
clench 2010-02-04 04:58:14 +00:00
parent a6efcbc402
commit 1899ac4712

View file

@ -991,10 +991,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']];
}
}
}
}