Use TRUNCATE when using MySQL 4 (bug #748792).

This commit is contained in:
Michal Čihař
2003-06-04 11:48:15 +00:00
parent 3a6933200e
commit 31c5474400
2 changed files with 9 additions and 2 deletions

View File

@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2003-06-04 Michal Cihar <nijel@users.sourceforge.net>
* mult_submits.inc.php3: Use TRUNCATE when using MySQL 4 (bug #748792).
2003-06-03 Marc Delisle <lem9@users.sourceforge.net> 2003-06-03 Marc Delisle <lem9@users.sourceforge.net>
* lang/spanish: Updates, thanks to Dr. med. Daniel Hinostroza C. * lang/spanish: Updates, thanks to Dr. med. Daniel Hinostroza C.
* lang/slovak update, thanks to Lubos Klokner * lang/slovak update, thanks to Lubos Klokner

View File

@@ -196,8 +196,12 @@ else if ($mult_btn == $strYes) {
break; break;
case 'empty_tbl': case 'empty_tbl':
$a_query = 'DELETE FROM ' if (PMA_MYSQL_INT_VERSION >= 40000) {
. PMA_backquote(urldecode($selected[$i])); $a_query .= 'TRUNCATE ';
} else {
$a_query .= 'DELETE FROM ';
}
$a_query .= PMA_backquote(htmlspecialchars(urldecode($selected[$i])))
break; break;
case 'drop_fld': case 'drop_fld':