diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-04 15:00:24 -0700 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-08-04 15:00:24 -0700 |
commit | 0ae2bb77ba09b319347dcf2ec29a641931185a93 (patch) | |
tree | e785f6bc0d145f1ec23df52417dfb41ff2e30889 | |
parent | 9923fe655bf32a2551ac0f1fd863a6a50af20157 (diff) | |
parent | 89f8f8e42d2729254a1b0e06c942af934bee3948 (diff) | |
download | nextcloud-server-0ae2bb77ba09b319347dcf2ec29a641931185a93.tar.gz nextcloud-server-0ae2bb77ba09b319347dcf2ec29a641931185a93.zip |
Merge pull request #4228 from owncloud/fix-3836
app migrate: Use = instead of LIKE as described in the comment above.
-rw-r--r-- | lib/migration/content.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/migration/content.php b/lib/migration/content.php index 400a46a4340..2d8268a1d74 100644 --- a/lib/migration/content.php +++ b/lib/migration/content.php @@ -112,7 +112,7 @@ class OC_Migration_Content{ foreach( $options['matchval'] as $matchval ) { // Run the query for this match value (where x = y value) - $sql = 'SELECT * FROM `*PREFIX*' . $options['table'] . '` WHERE `' . $options['matchcol'] . '` LIKE ?'; + $sql = 'SELECT * FROM `*PREFIX*' . $options['table'] . '` WHERE `' . $options['matchcol'] . '` = ?'; $query = OC_DB::prepare( $sql ); $results = $query->execute( array( $matchval ) ); $newreturns = $this->insertData( $results, $options ); |