Skip to content
This repository has been archived by the owner on Jan 6, 2023. It is now read-only.

Commit

Permalink
Fix 943 (#947)
Browse files Browse the repository at this point in the history
* Test cases : AUthentication - Auth, Forgot Password, Collections - Create, Delete

* #943
  • Loading branch information
itsmerhp authored and binal-7span committed May 14, 2019
1 parent a228a40 commit df44e94
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/core/Directus/Database/Schema/Sources/MySQLSchema.php
Expand Up @@ -675,7 +675,8 @@ public function getTypesRequireLength()
'varbinary',
'enum',
'set',
'decimal'
'decimal',
'char'
];
}

Expand Down
Expand Up @@ -1655,7 +1655,7 @@ protected function applyLegacyParams(Builder $query, array $params = [])
}

//$query->whereIn($this->primaryKeyFieldName, $entriesIds);
$query->whereIn(new Expression('CAST('.$this->primaryKeyFieldName.' as CHAR)'), $entriesIds);
$query->whereIn(new Expression('CAST(`'.$this->getTable().'`.`'.$this->primaryKeyFieldName.'` as CHAR)'), $entriesIds);
}

if (!ArrayUtils::has($params, 'q')) {
Expand Down

0 comments on commit df44e94

Please sign in to comment.