summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Fischer <bantu@owncloud.com>2013-07-29 18:36:52 +0200
committerAndreas Fischer <bantu@owncloud.com>2013-07-29 18:41:22 +0200
commit89f8f8e42d2729254a1b0e06c942af934bee3948 (patch)
tree816a706b08aa4a5a633667c7fbd40ebc018da181
parent7f9795cc3d632577e392c7fbd07f39f70bf39773 (diff)
downloadnextcloud-server-89f8f8e42d2729254a1b0e06c942af934bee3948.tar.gz
nextcloud-server-89f8f8e42d2729254a1b0e06c942af934bee3948.zip
app migrate: Use = instead of LIKE as described in the comment above.
The LIKE operator is not defined on integers (probably any non-text) columns on PostgreSQL.
-rw-r--r--lib/migration/content.php2
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 );