Adding fix for Ticket #2737, changed TRUNCATE to TRUNCATE TABLE

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5308 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-06-20 03:20:59 +00:00
parent 3ea80f7618
commit 9f5becbc33

View file

@ -206,7 +206,7 @@ class CakeTestFixture extends Object {
*/
function truncate() {
if (!isset($this->_truncate)) {
$this->_truncate = 'TRUNCATE ' . $this->db->name($this->db->config['prefix'] . $this->table);
$this->_truncate = 'TRUNCATE TABLE ' . $this->db->name($this->db->config['prefix'] . $this->table);
}
return $this->_truncate;