File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed
main/java/com/geckotechnology/mySqlDataCompare
test/java/com/geckotechnology/mySqlDataCompare Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ Comparing Database Schema Metadata MASTER with Slave #1
5959 WARNING object:tab5.sometext2, differenceType:COLUMN_DIFFERENT_ORDINAL_POSITION, note:master:3 v.s. slave:1
6060 WARNING object:tab5.uid, differenceType:COLUMN_DIFFERENT_ORDINAL_POSITION, note:master:1 v.s. slave:3
6161Comparing Database Schema Data MASTER with Slave #1
62- In scope tables: tab1 tab2 tab3 tab5
62+ In- scope tables for comparison: 4. Table names : tab1 tab2 tab3 tab5
6363 ERROR object:tab1, differenceType:DATA_ROW_DIFFERENT_MD5, note:(uid)=(3)
6464 ERROR object:tab1, differenceType:DATA_ROW_MISSING_IN_SLAVE_TABLE, note:(uid)=(5)
6565 ERROR object:tab1, differenceType:DATA_ROW_DIFFERENT_MD5, note:(uid)=(7)
Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ public static void main(String[] args)
5656 System .out .println ("Comparing Database Schema Data MASTER with Slave #" + i );
5757 ArrayList <Table > tablesReadyToBeDataAnalyzed = mySQLSchemaComparer .getMasterTablesReadyToBeDataAnalyzed ();
5858 //printing table names to be analyzed
59- System .out .print ("In scope tables: " );
59+ System .out .print ("In- scope tables for comparison: " + tablesReadyToBeDataAnalyzed . size () + ". Table names : " );
6060 for (Table table :tablesReadyToBeDataAnalyzed ) {
6161 System .out .print (table .getTableName ());
6262 System .out .print (" " );
Original file line number Diff line number Diff line change @@ -84,6 +84,7 @@ public void testCompareSchemaAndData() throws Exception
8484 assertEquals (schemaDifferences .size (), 27 );
8585
8686 ArrayList <Table > tablesReadyToBeDataAnalyzed = mySQLSchemaComparer .getMasterTablesReadyToBeDataAnalyzed ();
87+ assertEquals (tablesReadyToBeDataAnalyzed .size (), 4 );
8788 MySQLTableDataComparer tableDataComparer = new MySQLTableDataComparer (masterSchemaReader , slaveSchemaReader );
8889 for (Table table :tablesReadyToBeDataAnalyzed )
8990 tableDataComparer .compareTable (table );
You can’t perform that action at this time.
0 commit comments