Merge pull request #12867 from ibennetch/12859
Changed the SQL window suggestion tool to have DELETE...WHERE 0 inste…
This commit is contained in:
commit
1fda01d02b
@ -68,6 +68,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
|
||||
|
||||
@ -1212,7 +1212,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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user