You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a problem while using mysql_query_rules:
My rule is to match whether the SQL contains a 'where' query condition, and the corresponding SQL is: INSERT INTO mysql_query_rules ( rule_id, active, username, match_pattern, error_msg, apply, flagOUT )
VALUES
( 103, 1, 'root', '^UPDATE\s+[^\s]+\s+SET\s+(?!\sWHERE\s+).$', 'The Update statement must contain a valid WHERE condition.', 1, 14 );
Executing SQL: update sys_user SET user_name='test 'can match, but in reality, the executed SQL has line breaks. How should we handle line breaks? For example:
update sys_user
SET
user_name='test'
The text was updated successfully, but these errors were encountered:
I encountered a problem while using mysql_query_rules:
My rule is to match whether the SQL contains a 'where' query condition, and the corresponding SQL is: INSERT INTO mysql_query_rules ( rule_id, active, username, match_pattern, error_msg, apply, flagOUT )
VALUES
( 103, 1, 'root', '^UPDATE\s+[^\s]+\s+SET\s+(?!\sWHERE\s+).$', 'The Update statement must contain a valid WHERE condition.', 1, 14 );
Executing SQL: update sys_user SET user_name='test 'can match, but in reality, the executed SQL has line breaks. How should we handle line breaks? For example:
update sys_user
SET
user_name='test'
The text was updated successfully, but these errors were encountered: