Project

General

Profile

« Previous | Next » 

Revision 50575

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
48 48

  
49 49
	private NamedParameterJdbcTemplate jdbcTemplate;
50 50

  
51
	// https://github.com/pgjdbc/pgjdbc/issues/798
52
	static {
53
		try {
54
			Class.forName("org.postgresql.Driver");
55
		} catch (ClassNotFoundException e) {
56
			log.error("PostgreSQL DataSource unable to load PostgreSQL JDBC Driver");
57
		}
58
	}
59

  
51 60
	public enum AfterSqlUpdate {
52 61
		DELETE_DS_PROFILE, UPDATE_DS_PROFILE, NONE
53 62
	}

Also available in: Unified diff