mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#19705602 problem fixed, when specified column select
git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8338 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d4bb3ade9a
commit
56f582c847
1 changed files with 16 additions and 4 deletions
|
|
@ -940,8 +940,14 @@
|
|||
{
|
||||
$columns = array();
|
||||
foreach($output->arg_columns as $col){
|
||||
if(strpos($col,'"')===false && strpos($col,' ')===false) $columns[] = '"'.$col.'"';
|
||||
else $columns[] = $col;
|
||||
unset($tmpCol);
|
||||
$tmpCol = explode('.', $col);
|
||||
if(isset($tmpCol[1])) $col = $tmpCol[1];
|
||||
|
||||
if(strpos($col,'"')===false && strpos($col,' ')==false) $col = '"'.$col.'"';
|
||||
if(isset($tmpCol[1])) $col = $tmpCol[0].'.'.$col;
|
||||
|
||||
$columns[] = $col;
|
||||
}
|
||||
|
||||
$columns = join(',',$columns);
|
||||
|
|
@ -1178,8 +1184,14 @@
|
|||
{
|
||||
$columns = array();
|
||||
foreach($output->arg_columns as $col){
|
||||
if(strpos($col,'"')===false) $columns[] = '"'.$col.'"';
|
||||
else $columns[] = $col;
|
||||
unset($tmpCol);
|
||||
$tmpCol = explode('.', $col);
|
||||
if(isset($tmpCol[1])) $col = $tmpCol[1];
|
||||
|
||||
if(strpos($col,'"')===false && strpos($col,' ')==false) $col = '"'.$col.'"';
|
||||
if(isset($tmpCol[1])) $col = $tmpCol[0].'.'.$col;
|
||||
|
||||
$columns[] = $col;
|
||||
}
|
||||
|
||||
$columns = join(',',$columns);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue