Skip to content

Commit

Permalink
fixed issue #3538 , compatiable mysql8.0 filed meta
Browse files Browse the repository at this point in the history
  • Loading branch information
agapple committed May 17, 2022
1 parent 4a22d72 commit e41e903
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion deployer/src/main/resources/example/instance.properties
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ canal.mq.topic=example
#canal.mq.dynamicTopic=mytest1.user,mytest2\\..*,.*\\..*
canal.mq.partition=0
# hash partition config
#canal.mq.enableDynamicQueuePartition=false
#canal.mq.partitionsNum=3
#canal.mq.partitionHash=test.table:id^name,.*\\..*
#canal.mq.dynamicTopicPartitionNum=test.*:4,mycanal:6
#canal.mq.partitionHash=test.table:id^name,.*\\..*
#################################################
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@
*/
public class TableMetaCache {

public static final String COLUMN_NAME = "COLUMN_NAME";
public static final String COLUMN_TYPE = "COLUMN_TYPE";
public static final String IS_NULLABLE = "IS_NULLABLE";
public static final String COLUMN_KEY = "COLUMN_KEY";
public static final String COLUMN_DEFAULT = "COLUMN_DEFAULT";
public static final String EXTRA = "EXTRA";
public static final String COLUMN_NAME = "Field";
public static final String COLUMN_TYPE = "Type";
public static final String IS_NULLABLE = "Null";
public static final String COLUMN_KEY = "Key";
public static final String COLUMN_DEFAULT = "Default";
public static final String EXTRA = "Extra";
private MysqlConnection connection;
private boolean isOnRDS = false;
private boolean isOnPolarX = false;
Expand Down Expand Up @@ -125,7 +125,7 @@ public static List<FieldMeta> parseTableMetaByDesc(ResultSetPacket packet) {
Map<String, Integer> nameMaps = new HashMap<>(6, 1f);
int index = 0;
for (FieldPacket fieldPacket : packet.getFieldDescriptors()) {
nameMaps.put(fieldPacket.getOriginalName(), index++);
nameMaps.put(fieldPacket.getName(), index++);
}

int size = packet.getFieldDescriptors().size();
Expand Down

0 comments on commit e41e903

Please sign in to comment.