git-svn-id: http://xe-core.googlecode.com/svn/sandbox@7269 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
clench 2010-02-03 07:04:42 +00:00
parent 58258f76db
commit 8c03ae8cca

View file

@ -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']];
}
}
}
}