return fix
This commit is contained in:
parent
b71936192a
commit
04dd977843
|
@ -551,12 +551,8 @@ class Query extends Component implements QueryInterface
|
||||||
|
|
||||||
$names = '';
|
$names = '';
|
||||||
foreach ($columns as $name => $column) {
|
foreach ($columns as $name => $column) {
|
||||||
if (is_int($name)) {
|
|
||||||
$names .= $column . ', ';
|
|
||||||
} else {
|
|
||||||
$names .= "\"$name\": $this->from.$column, ";
|
$names .= "\"$name\": $this->from.$column, ";
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
return 'RETURN {' . trim($names, ', ') . '}';
|
return 'RETURN {' . trim($names, ', ') . '}';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue