Skip to content

Commit

Permalink
DbRepository: Remove the table prefix when resolving statement columns
Browse files Browse the repository at this point in the history
refs #8826
  • Loading branch information
Johannes Meyer committed May 20, 2015
1 parent bd07f78 commit 0dda19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Repository/DbRepository.php
Expand Up @@ -348,7 +348,7 @@ public function resolveStatementColumnAlias($table, $alias)
return $statementColumnMap[$alias];
}

$prefixedAlias = $table . '.' . $alias;
$prefixedAlias = $this->removeTablePrefix($table) . '.' . $alias;
if (isset($statementColumnMap[$prefixedAlias])) {
return $statementColumnMap[$prefixedAlias];
}
Expand Down

0 comments on commit 0dda19d

Please sign in to comment.