Skip to content

Commit

Permalink
add tag
Browse files Browse the repository at this point in the history
  • Loading branch information
LubyRuffy authored and LubyRuffy committed Aug 6, 2014
1 parent b2f2876 commit c30a1ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/jobs/module/webdb2_class.rb
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ def update_host_to_subdomain( host, domain, subdomain, http_info, host_exists=fa
end

def insert_host_to_error_table(host, reason)
sql = "insert into error_host (host, hosthash, reason) values('#{Mysql2::Client.escape(host)}', '#{Digest::MD5.hexdigest(host)}', '#{Mysql2::Client.escape(reason)}') ON DUPLICATE KEY UPDATE reason='#{Mysql2::Client.escape(reason)}'"
sql = "insert into error_host (host, reason) values('#{Mysql2::Client.escape(host)}', '#{Mysql2::Client.escape(reason)}') ON DUPLICATE KEY UPDATE reason='#{Mysql2::Client.escape(reason)}'"
#puts sql
db_exec(@mysql, sql)
end
Expand Down

0 comments on commit c30a1ea

Please sign in to comment.