Skip to content

Commit

Permalink
Fix querying object list by fullpath - resolves #776 (#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvesh3 authored Aug 1, 2023
1 parent 630d729 commit e28c7c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GraphQL/Resolver/QueryType.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public function resolveObjectGetter($value = null, $args = [], $context = [], Re

if ($isFullpathSet) {
$fullpath = Service::correctPath($args['fullpath']);
$conditionParts[] = sprintf('(concat(%s, %s) =' . Db::get()->quote($fullpath) . ')',
$conditionParts[] = sprintf('(CONCAT(`%s`,`%s`) =' . Db::get()->quote($fullpath) . ')',
Service::getVersionDependentDatabaseColumnName('o_path'),
Service::getVersionDependentDatabaseColumnName('o_key'));
}
Expand Down Expand Up @@ -423,7 +423,7 @@ static function ($fullpath) use ($db) {
},
str_getcsv($args['fullpaths'], ',', "'")
);
$conditionParts[] = sprintf('(concat(%s, %s) IN (' . implode(',', $quotedFullpaths) . '))',
$conditionParts[] = sprintf('(CONCAT(`%s`,`%s`) IN (' . implode(',', $quotedFullpaths) . '))',
Service::getVersionDependentDatabaseColumnName('o_path'),
Service::getVersionDependentDatabaseColumnName('o_key'));
}
Expand Down

0 comments on commit e28c7c4

Please sign in to comment.