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.
This commit is contained in:
Andreas Fischer 2013-07-29 18:36:52 +02:00
parent 7f9795cc3d
commit 89f8f8e42d
1 changed files with 1 additions and 1 deletions

View File

@ -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 );