List:Internals« Previous MessageNext Message »
From:mmatthews Date:August 2 2005 7:13pm
Subject:Connector/J commit: r4013 - in branches/branch_3_1/connector-j/src: com/mysql/jdbc/configs testsuite/regression
View as plain text  
Modified:
   branches/branch_3_1/connector-j/src/com/mysql/jdbc/configs/maxPerformance.properties
   branches/branch_3_1/connector-j/src/testsuite/regression/ConnectionRegressionTest.java
Log:
Fixed BUG#11976 - maxPerformance.properties mis-spells 
	  "elideSetAutoCommits".

Modified: branches/branch_3_1/connector-j/src/com/mysql/jdbc/configs/maxPerformance.properties
===================================================================
--- branches/branch_3_1/connector-j/src/com/mysql/jdbc/configs/maxPerformance.properties	2005-08-02 19:03:03 UTC (rev 4012)
+++ branches/branch_3_1/connector-j/src/com/mysql/jdbc/configs/maxPerformance.properties	2005-08-02 19:13:12 UTC (rev 4013)
@@ -21,5 +21,5 @@
 # 
 
 useLocalSessionState=true
-elideSetAutocommit=true
+elideSetAutoCommits=true
 alwaysSendSetIsolation=false
\ No newline at end of file

Modified: branches/branch_3_1/connector-j/src/testsuite/regression/ConnectionRegressionTest.java
===================================================================
--- branches/branch_3_1/connector-j/src/testsuite/regression/ConnectionRegressionTest.java	2005-08-02 19:03:03 UTC (rev 4012)
+++ branches/branch_3_1/connector-j/src/testsuite/regression/ConnectionRegressionTest.java	2005-08-02 19:13:12 UTC (rev 4013)
@@ -1111,6 +1111,20 @@
 		}
 	}
 	
+	/** 
+	 * Tests fix for BUG#11976 - maxPerformance.properties
+	 * mis-spells "elideSetAutoCommits".
+	 * 
+	 * @throws Exception if the test fails.
+	 */
+	public void testBug11976() throws Exception {
+		Properties props = new Properties();
+		props.setProperty("useConfigs", "maxPerformance");
+		
+		Connection maxPerfConn = getConnectionWithProps(props);
+		assertEquals(true, ((com.mysql.jdbc.Connection)maxPerfConn).getElideSetAutoCommits());
+	}
+	
 	/**
 	 * Tests fix for BUG#12218, properties shared between master
 	 * and slave with replication connection.

Thread
Connector/J commit: r4013 - in branches/branch_3_1/connector-j/src: com/mysql/jdbc/configs testsuite/regressionmmatthews2 Aug