Skip to content
Snippets Groups Projects
Commit daea5229 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 6a494c22
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ function coder_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_sql_db_query_range_warning',
),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment