diff --git a/ChangeLog b/ChangeLog index 15f0b1b5d9..f4e27614ac 100644 --- a/ChangeLog +++ b/ChangeLog @@ -27,6 +27,7 @@ phpMyAdmin - ChangeLog - issue #12814 DateTime won't allow to input length in Routine editor - issue #12841 Fixed moving of columns with whitespace in name - issue #12847 Fixed editing of virtual columns +- issue #12859 Changed WHERE condition to 0 instead of 1 for SQL query window to avoid accidents 4.6.5.2 (2016-12-05) - issue #12765 Fixed SQL export with newlines diff --git a/js/functions.js b/js/functions.js index 695368c94f..95784bb7f1 100644 --- a/js/functions.js +++ b/js/functions.js @@ -1207,7 +1207,7 @@ function insertQuery(queryType) } else if (queryType == "update") { query = "UPDATE `" + table + "` SET " + editDis + " WHERE 1"; } else if (queryType == "delete") { - query = "DELETE FROM `" + table + "` WHERE 1"; + query = "DELETE FROM `" + table + "` WHERE 0"; } setQuery(query); sql_box_locked = false;