From: Jakub Vrana Date: Thu, 28 Mar 2013 04:11:46 +0000 (-0700) Subject: Don't convert columns which are not selected X-Git-Tag: v3.6.4~41 X-Git-Url: https://git.joonet.de/?a=commitdiff_plain;h=e531d6ef411f4068f12c23f226826cfef8f4289e;p=adminer.git Don't convert columns which are not selected --- diff --git a/adminer/select.inc.php b/adminer/select.inc.php index 27e845b0..410b1f69 100644 --- a/adminer/select.inc.php +++ b/adminer/select.inc.php @@ -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);