Skip to content

Commit

Permalink
BUG Fix hash redirection logic on PostreSQL and add PostreSQL to the …
Browse files Browse the repository at this point in the history
…travis matrix (#237)
  • Loading branch information
dnsl48 authored and chillu committed Apr 9, 2019
1 parent d76ce85 commit 661a27e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .travis.yml
Expand Up @@ -16,6 +16,8 @@ matrix:
env: DB=MYSQL PHPUNIT_TEST=1
- php: 7.1
env: DB=MYSQL PDO=1 PHPUNIT_COVERAGE_TEST=1
- php: 7.2
env: DB=PGSQL PHPUNIT_TEST=1

before_script:
- printf "\n" | pecl install imagick
Expand Down
2 changes: 1 addition & 1 deletion src/Flysystem/FlysystemAssetStore.php
Expand Up @@ -1015,7 +1015,7 @@ private function searchForEquivalentFileID($asset)
[
['"FileHash" like ?' => DB::get_conn()->escapeString($parsedFileID['Hash']) . '%'],
['not "FileHash" like ?' => DB::get_conn()->escapeString($file->getHash())],
'WasPublished' => true
'"WasPublished"' => true
],
"",
1
Expand Down

0 comments on commit 661a27e

Please sign in to comment.