lib/jvertica.rb in jvertica-0.1.10 vs lib/jvertica.rb in jvertica-0.1.11
- old
+ new
@@ -40,11 +40,11 @@
prop.put(key.to_s, value) unless value.nil?
end
@connection =
begin
- DriverManager.getConnection("jdbc:vertica://#{host}:#{port}/#{database}", prop)
+ com.vertica.jdbc.Driver.new.connect("jdbc:vertica://#{host}:#{port}/#{database}", prop)
rescue => e
raise ConnectionError.new(
"Connection Failed.\n" <<
"Error Message => #{e.message}\n" <<
"see documentation => #{Constant::CONNECTION_PROPERTY_DOCUMENT_URL}\n"
@@ -125,12 +125,9 @@
[query(query), nil]
end
end
private
-
- class DriverManager < java.sql.DriverManager
- end
class Properties < java.util.Properties
end
class DataSource < com.vertica.jdbc.DataSource