Bug #776016 (TRUNCATE table needs confirmation)

This commit is contained in:
Garvin Hicking
2003-07-24 14:57:58 +00:00
parent b83e44556c
commit ff092dc12c
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ phpMyAdmin - Changelog
$Id$ $Id$
$Source$ $Source$
2003-07-24 Garvin Hicking <me@supergarv.de>
* libraries/sqlparser.lib.php3 - Confirmation is also needed on
TRUNCATE statements!
2003-07-24 Marc Delisle <lem9@users.sourceforge.net> 2003-07-24 Marc Delisle <lem9@users.sourceforge.net>
* libraries/sqlparser.lib.php3 /relation.lib.php3 /get_foreign.lib.php3: * libraries/sqlparser.lib.php3 /relation.lib.php3 /get_foreign.lib.php3:
bug 772765, InnoDB and multi-columns foreign key bug 772765, InnoDB and multi-columns foreign key

View File

@@ -1209,7 +1209,8 @@ if (!defined('PMA_SQP_LIB_INCLUDED')) {
// if the first reserved word is DROP or DELETE, // if the first reserved word is DROP or DELETE,
// we know this is a query that needs to be confirmed // we know this is a query that needs to be confirmed
if ($first_reserved_word=='DROP' if ($first_reserved_word=='DROP'
|| $first_reserved_word == 'DELETE') { || $first_reserved_word == 'DELETE'
|| $first_reserved_word == 'TRUNCATE') {
$subresult['queryflags']['need_confirm'] = 1; $subresult['queryflags']['need_confirm'] = 1;
} }