From 49ecd7764b7dd893bb1d15ff3ad0d0d622c7aafe Mon Sep 17 00:00:00 2001 From: Andreas Fischer Date: Mon, 29 Jul 2013 18:36:52 +0200 Subject: [PATCH] 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. --- lib/migration/content.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.39.5