Skip to content

Commit

Permalink
RepoDb::getPdoStatementBySqlQuery(): fix returned columns set
Browse files Browse the repository at this point in the history
  • Loading branch information
zozlak committed Mar 2, 2023
1 parent 187cd46 commit c5976c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/acdhOeaw/arche/lib/RepoDb.php
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ public function getPdoStatementBySqlQuery(string $query, array $parameters,
$metaWhere .= " OR ids.id IS NULL";
}
if (empty($metaWhere)) {
$metaQuery .= "SELECT * FROM meta";
$metaQuery .= "SELECT id, property, type, lang, value FROM meta";
} else {
$metaQuery .= "SELECT meta.* FROM meta LEFT JOIN ids USING (id) WHERE " . substr($metaWhere, 4);
$metaQuery .= "SELECT meta.id, meta.property, meta.type, meta.lang, meta.value FROM meta LEFT JOIN ids USING (id) WHERE " . substr($metaWhere, 4);
}
}

Expand Down

0 comments on commit c5976c9

Please sign in to comment.