From 909b65f37f33b3bcbe44a3c2ae101e18b21c55df Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Wed, 5 Dec 2007 17:01:48 +0000 Subject: [PATCH] bug #1843463 [GUI] DROP PROCEDURE does not show alert --- ChangeLog | 1 + js/functions.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 6f163da3b..005a0d4da 100644 --- a/ChangeLog +++ b/ChangeLog @@ -9,6 +9,7 @@ $HeadURL: https://phpmyadmin.svn.sourceforge.net/svnroot/phpmyadmin/trunk/phpMyA - bug #1843428 [GUI] Space issue with DROP/DELETE/ALTER TABLE - bug #1807816 [search] regular expression search doesn't work with backslashes +- bug #1843463 [GUI] DROP PROCEDURE does not show alert 2.11.3.0 (not yet released) - patch #1818389 to remove a notice (failed to flush buffer), thanks to diff --git a/js/functions.js b/js/functions.js index 276366409..7bfa32878 100644 --- a/js/functions.js +++ b/js/functions.js @@ -159,7 +159,7 @@ function confirmQuery(theForm1, sqlQuery1) // For now, I just added a ^ to check for the statement at // beginning of expression - var do_confirm_re_0 = new RegExp('^\\s*DROP\\s+(IF EXISTS\\s+)?(TABLE|DATABASE)\\s', 'i'); + var do_confirm_re_0 = new RegExp('^\\s*DROP\\s+(IF EXISTS\\s+)?(TABLE|DATABASE|PROCEDURE)\\s', 'i'); var do_confirm_re_1 = new RegExp('^\\s*ALTER\\s+TABLE\\s+((`[^`]+`)|([A-Za-z0-9_$]+))\\s+DROP\\s', 'i'); var do_confirm_re_2 = new RegExp('^\\s*DELETE\\s+FROM\\s', 'i'); if (do_confirm_re_0.test(sqlQuery1.value)