mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 06:08:46 -04:00
Merge pull request #4228 from owncloud/fix-3836
app migrate: Use = instead of LIKE as described in the comment above.
This commit is contained in:
commit
0ae2bb77ba
1 changed files with 1 additions and 1 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
Loading…
Reference in a new issue