Quote column names on insert

remotes/origin/ldap_group_count
Bart Visscher 13 years ago
parent 4e1a3f212f
commit 1b7eb4dc6c
  1. 6
      core/command/db/convertfromsqlite.php

@ -194,7 +194,11 @@ class ConvertFromSqlite extends Command {
$progress->setRedrawFrequency($count > 100 ? 5 : 1);
while($row = $statement->fetch()) {
$progress->advance();
$toDB->insert($table, $row);
$data = array();
foreach ($row as $columnName => $value) {
$data[$toDB->quoteIdentifier($columnName)] = $value;
}
$toDB->insert($table, $data);
}
$progress->finish();
}

Loading…
Cancel
Save