Skip to content

Commit c30a1ea

Browse files
LubyRuffyLubyRuffy
LubyRuffy
authored and
LubyRuffy
committed
add tag
1 parent b2f2876 commit c30a1ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/jobs/module/webdb2_class.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ def update_host_to_subdomain( host, domain, subdomain, http_info, host_exists=fa
183183
end
184184

185185
def insert_host_to_error_table(host, reason)
186-
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)}'"
186+
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)}'"
187187
#puts sql
188188
db_exec(@mysql, sql)
189189
end

0 commit comments

Comments
 (0)