lib/jvertica.rb in jvertica-0.1.2 vs lib/jvertica.rb in jvertica-0.1.3

- old
+ new

@@ -37,15 +37,16 @@ prop.put key.to_s, value end @connection = begin DriverManager.getConnection "jdbc:vertica://#{host}:#{port}/#{database}", prop - @closed = false rescue => e raise ConnectionError.new("Connection Failed.\n" + "Error Message => #{e.message}\n" + "see documentation => #{Constant::CONNECTION_PROPERTY_DOCUMENT_URL}\n") end + @closed = false + @connection end def closed? @closed end