diff options
author | Dries Buytaert <dries@buytaert.net> | 2009-10-16 19:06:25 +0000 |
---|---|---|
committer | Dries Buytaert <dries@buytaert.net> | 2009-10-16 19:06:25 +0000 |
commit | 60c5878351cc547dbfda260fefcf378491c958ec (patch) | |
tree | 9985db3bf964c09cb8564b54c79f345d773edf21 /includes/database/select.inc | |
parent | 4430d46334127c69d5ff97ce2e15475c0fae2654 (diff) | |
download | brdo-60c5878351cc547dbfda260fefcf378491c958ec.tar.gz brdo-60c5878351cc547dbfda260fefcf378491c958ec.tar.bz2 |
- Patch #593746 by #593746 by sun, andypost: prepare Drupal core for dynamic data translation.
Diffstat (limited to 'includes/database/select.inc')
-rw-r--r-- | includes/database/select.inc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/database/select.inc b/includes/database/select.inc index cebeef7ad..3eddd3ad7 100644 --- a/includes/database/select.inc +++ b/includes/database/select.inc @@ -1285,6 +1285,11 @@ class SelectQuery extends Query implements SelectQueryInterface { // FIELDS and EXPRESSIONS $fields = array(); + foreach ($this->tables as $alias => $table) { + if (!empty($table['all_fields'])) { + $fields[] = $alias . '.*'; + } + } foreach ($this->fields as $alias => $field) { // Always use the AS keyword for field aliases, as some // databases require it (e.g., PostgreSQL). @@ -1293,11 +1298,6 @@ class SelectQuery extends Query implements SelectQueryInterface { foreach ($this->expressions as $alias => $expression) { $fields[] = $expression['expression'] . ' AS ' . $expression['alias']; } - foreach ($this->tables as $alias => $table) { - if (!empty($table['all_fields'])) { - $fields[] = $alias . '.*'; - } - } $query .= implode(', ', $fields); |