Use TRUNCATE when using MySQL 4 (bug #748792).
This commit is contained in:
@@ -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
|
||||||
|
@@ -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':
|
||||||
|
Reference in New Issue
Block a user