#At http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel
------------------------------------------------------------
revno: 427
revision-id:mtaylor@stripped
parent: mtaylor@stripped
committer: Monty Taylor <mtaylor@stripped>
branch nick: devel
timestamp: Mon 2008-01-28 17:02:45 -0800
message:
Added table invalidation to test case.
modified:
java/testsuite/BaseNdbjTestCase.java basejdbc.java-20070517181935-98huwjarzuh25b30-45
=== modified file 'java/testsuite/BaseNdbjTestCase.java'
--- a/java/testsuite/BaseNdbjTestCase.java 2007-12-09 22:26:12 +0000
+++ b/java/testsuite/BaseNdbjTestCase.java 2008-01-29 01:02:45 +0000
@@ -4,10 +4,12 @@
import java.io.FileInputStream;
import java.io.InputStream;
import java.sql.Connection;
+import java.sql.SQLException;
import java.util.Properties;
import com.mysql.cluster.ndbj.NdbApiException;
import com.mysql.cluster.ndbj.NdbClusterConnection;
+import com.mysql.cluster.ndbj.NdbDictionary;
import com.mysql.cluster.ndbj.NdbFactory;
import com.mysql.cluster.ndbj.NdbTransaction;
import com.mysql.cluster.ndbj.ndbj;
@@ -15,6 +17,8 @@
public class BaseNdbjTestCase extends testsuite.BaseTestCase {
+
+
protected static final String CONFIG_FILENAME="ndbj.props";
protected static String MYSQLD_HOST="";
protected static String NDB_MGMD_CONNECTSTRING="";
@@ -191,5 +195,15 @@
System.gc(); System.runFinalization();*/
super.tearDown();
}
+
+ /* (non-Javadoc)
+ * @see testsuite.BaseTestCase#createTable(java.lang.String, java.lang.String)
+ */
+ @Override
+ protected void createTable(String tableName, String columnsAndOtherStuff) throws
SQLException {
+ super.createTable(tableName, columnsAndOtherStuff);
+ NdbDictionary theDict = ndb.getDictionary();
+ theDict.invalidateTable(tableName);
+ }
}
| Thread |
|---|
| • bzr COMMIT - http://bazaar.launchpad.net/~ndb-connectors/ndb-connectors/devel (mtaylor 427 ) | Monty Taylor | 29 Jan |