Skip to content

Commit 5c2a824

Browse files
author
Nageswaran Sokkayaraj
committed
MySQL 8 upgrade sort the columns in first column order. it is breaking the data presented in BinLog. Hardcoding the order
1 parent 02563ac commit 5c2a824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mysql-replicator-augmenter/src/main/java/com/booking/replication/augmenter/ActiveSchemaManager.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ public interface Configuration {
5050
+ "COLUMN_KEY, COLUMN_DEFAULT,EXTRA, PRIVILEGES, COLUMN_COMMENT, DATA_TYPE, "
5151
+ "CHARACTER_MAXIMUM_LENGTH, CHARACTER_OCTET_LENGTH, NUMERIC_PRECISION, NUMERIC_SCALE, DATETIME_PRECISION "
5252
+ " FROM INFORMATION_SCHEMA.COLUMNS "
53-
+ " WHERE TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s'";
53+
+ " WHERE TABLE_SCHEMA = '%s' AND TABLE_NAME = '%s' ORDER BY ORDINAL_POSITION";
5454

5555
private final BasicDataSource activeSchemaDataSource;
5656

0 commit comments

Comments
 (0)