[teiid-commits] teiid SVN: r2174 - trunk/client/src/main/java/org/teiid/jdbc.

teiid-commits at lists.jboss.org teiid-commits at lists.jboss.org
Thu Jun 3 17:55:23 EDT 2010


Author: rareddy
Date: 2010-06-03 17:55:23 -0400 (Thu, 03 Jun 2010)
New Revision: 2174

Modified:
   trunk/client/src/main/java/org/teiid/jdbc/TeiidDataSource.java
Log:
TEIID-1109: validation of the properties was missing in the "embedded" case that threw a SQLException whic would have avoided the NPE. Added the required check now.

Modified: trunk/client/src/main/java/org/teiid/jdbc/TeiidDataSource.java
===================================================================
--- trunk/client/src/main/java/org/teiid/jdbc/TeiidDataSource.java	2010-06-03 21:09:16 UTC (rev 2173)
+++ trunk/client/src/main/java/org/teiid/jdbc/TeiidDataSource.java	2010-06-03 21:55:23 UTC (rev 2174)
@@ -212,6 +212,7 @@
 
     	// check if this is embedded connection 
     	if (getServerName() == null) {
+    		super.validateProperties(userName, password);
 	        final Properties props = buildEmbeddedProperties(userName, password);	 
 	        String url = new JDBCURL(getDatabaseName(), null, props).getJDBCURL();
 	        return driver.connect(url, props);    		    		



More information about the teiid-commits mailing list