TRUNCATE TABLE replaced with DELETE FROM

abautu - February 17, 2007 - 22:22
Project:Drupal
Version:6.x-dev
Component:base system
Category:bug report
Priority:normal
Assigned:abautu
Status:closed
Description

Although TRUNCATE TABLE is faster (in MySql), I believe it is not a standard SQL command. I'm working on an SQLite layer. It is almost ready. I've noticed that cache.inc uses once the TRUNCATE TABLE command and I've replaced it with DELETE FROM.

Best wishes,
Andrei.

AttachmentSize
cache_25.patch586 bytes

#1

drumm - February 27, 2007 - 08:09
Version:5.1» 6.x-dev

Please do not mark your own patches as 'ready to commit'.

However, this is true- http://dev.mysql.com/doc/refman/4.1/en/truncate.html

Committed to 5.

#2

Dries - February 27, 2007 - 12:05
Status:patch (reviewed & tested by the community)» fixed

Hi Andrei, committed this patch to CVS HEAD. Looking forward to your work. :)

#3

Anonymous - March 13, 2007 - 12:15
Status:fixed» closed
 
 

Drupal is a registered trademark of Dries Buytaert.