1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-11 17:14:07 +02:00

Don't convert columns which are not selected

This commit is contained in:
Jakub Vrana
2013-03-27 21:11:46 -07:00
parent a38ea926f2
commit e531d6ef41

View File

@@ -33,6 +33,9 @@ $limit = $adminer->selectLimitProcess();
$from = ($select ? implode(", ", $select) : "*" . ($oid ? ", $oid" : ""));
if ($jush == "sql") {
foreach ($columns as $key => $val) {
if ($select && !$select[$key]) {
continue;
}
$as = convert_field($fields[$key]);
if ($as) {
$from .= ", $as AS " . idf_escape($key);