mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
3ea80f7618
commit
9f5becbc33
1 changed files with 20 additions and 20 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue