Fix bug purging table with a name as keyword sql. Added backquotes for table name. #22

Closed
wants to merge 1 commit into
from
@@ -84,7 +84,7 @@ public function purge()
$platform = $this->em->getConnection()->getDatabasePlatform();
foreach($orderedTables as $tbl) {
- $this->em->getConnection()->executeUpdate($platform->getTruncateTableSQL($tbl, true));
+ $this->em->getConnection()->executeUpdate($platform->getTruncateTableSQL('`'.$tbl.'`', true));
}
}