Use TRUNCATE when using MySQL 4 (bug #748792).
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
||||
$Id$
|
||||
$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>
|
||||
* lang/spanish: Updates, thanks to Dr. med. Daniel Hinostroza C.
|
||||
* lang/slovak update, thanks to Lubos Klokner
|
||||
|
@@ -196,8 +196,12 @@ else if ($mult_btn == $strYes) {
|
||||
break;
|
||||
|
||||
case 'empty_tbl':
|
||||
$a_query = 'DELETE FROM '
|
||||
. PMA_backquote(urldecode($selected[$i]));
|
||||
if (PMA_MYSQL_INT_VERSION >= 40000) {
|
||||
$a_query .= 'TRUNCATE ';
|
||||
} else {
|
||||
$a_query .= 'DELETE FROM ';
|
||||
}
|
||||
$a_query .= PMA_backquote(htmlspecialchars(urldecode($selected[$i])))
|
||||
break;
|
||||
|
||||
case 'drop_fld':
|
||||
|
Reference in New Issue
Block a user