lib/logstash/plugin_mixins/jdbc.rb in logstash-input-jdbc-1.0.1 vs lib/logstash/plugin_mixins/jdbc.rb in logstash-input-jdbc-1.0.2
- old
+ new
@@ -74,10 +74,10 @@
private
def jdbc_connect
opts = {
:user => @jdbc_user,
- :password => @jdbc_password,
+ :password => @jdbc_password.nil? ? nil : @jdbc_password.value,
:pool_timeout => @jdbc_pool_timeout
}.merge(@sequel_opts)
begin
Sequel.connect(@jdbc_connection_string, opts=opts)
rescue Sequel::PoolTimeout => e