Skip to content

Commit

Permalink
Improve match of 'SET' statements
Browse files Browse the repository at this point in the history
  • Loading branch information
favdev111 committed Apr 26, 2015
1 parent 3bf7ba3 commit 5507839
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def custom_error_message?(connection, message)

SQL_MASTER_MATCHERS = [/^\s*select.+for update$/i, /select.+lock in share mode$/i].map(&:freeze).freeze
SQL_SLAVE_MATCHERS = [/^\s*select\s/i].map(&:freeze).freeze
SQL_ALL_MATCHERS = [/^\s*set\s/i].map(&:freeze).freeze
SQL_ALL_MATCHERS = [/\A^\s*set\s/i].map(&:freeze).freeze
SQL_SKIP_STICKINESS_MATCHERS = [/^\s*show\s([\w]+\s)?(field|table|database|schema|view|index)(es|s)?/i, /^\s*(set|describe|explain|pragma)\s/i].map(&:freeze).freeze


Expand Down

0 comments on commit 5507839

Please sign in to comment.