Skip to content
Snippets Groups Projects
Commit 868ccf9d authored by Stella Power's avatar Stella Power
Browse files

issue #530698 by maartenvg: Fixed Wrongful suggestion to use db_query_range()...

issue #530698 by maartenvg: Fixed Wrongful suggestion to use db_query_range() on LIMITed DELETE FROM.
parent 0b0dc9fe
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ function coder_review_sql_reviews() {
),
array(
'#type' => 'regex',
'#value' => '^(select\s+.*\s+from\s+' . $table . '|insert\s+into\s+' . $table . '|update\s+' . $table . '\s+set|delete\s+from\s' . $table . ')\s+.*[Ll][Ii][Mm][Ii][Tt]\s[0-9]+',
'#value' => '^(select\s+.*\s+from\s+' . $table . '|insert\s+into\s+' . $table . ')\s+.*[Ll][Ii][Mm][Ii][Tt]\s[0-9]+',
'#source' => 'quote',
'#warning_callback' => '_coder_review_sql_db_query_range_warning',
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment