MYSQLSafe 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/MYSQLSafe/base.rb +1 -1
- data/lib/MYSQLSafe/version.rb +1 -1
- metadata +1 -1
data/lib/MYSQLSafe/base.rb
CHANGED
@@ -79,7 +79,7 @@ module MYSQLSafe
|
|
79
79
|
match = []
|
80
80
|
|
81
81
|
name_array.each do |name|
|
82
|
-
match.push(name) if sql.to_s.include?("#{name}=") || sql.to_s
|
82
|
+
match.push(name) if sql.to_s.include?("#{name}=") || sql.to_s[/#{name}\s+=/] || sql.to_s[/#{name}`\s+=/]
|
83
83
|
end
|
84
84
|
|
85
85
|
if match.size > 0
|
data/lib/MYSQLSafe/version.rb
CHANGED