From 505934f6adfa939d0b0db6beb4823ba4b6b6c860 Mon Sep 17 00:00:00 2001 From: maciej-bielski Date: Thu, 16 Oct 2014 12:03:39 +0200 Subject: [PATCH] Update Blueprint.php Added escaping table name --- lib/Phactory/Sql/Blueprint.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Phactory/Sql/Blueprint.php b/lib/Phactory/Sql/Blueprint.php index 7da5de5..987d68b 100644 --- a/lib/Phactory/Sql/Blueprint.php +++ b/lib/Phactory/Sql/Blueprint.php @@ -132,7 +132,7 @@ public function recall() { $db_util->disableForeignKeys(); try { - $sql = "DELETE FROM {$this->_table->getName()}"; + $sql = "DELETE FROM `{$this->_table->getName()}`"; $this->_phactory->getConnection()->exec($sql); } catch(Exception $e) { }