Project

General

Profile

« Previous | Next » 

Revision 50576

trying to avoid 'No suitable driver found' error

View differences:

modules/dnet-openaire-datasource-manager/trunk/src/main/java/eu/dnetlib/enabling/datasources/DatasourceManagerClients.java
51 51
	// https://github.com/pgjdbc/pgjdbc/issues/798
52 52
	static {
53 53
		try {
54
			Class.forName("org.postgresql.Driver");
54
			log.info(Class.forName("org.postgresql.Driver"));
55 55
		} catch (ClassNotFoundException e) {
56 56
			log.error("PostgreSQL DataSource unable to load PostgreSQL JDBC Driver");
57 57
		}

Also available in: Unified diff