mirror of
https://github.com/alibaba/canal.git
synced 2026-11-04 00:30:15 +08:00
fixed desc table case insensitive
This commit is contained in:
@@ -31,12 +31,12 @@ import com.google.common.cache.LoadingCache;
|
|||||||
*/
|
*/
|
||||||
public class TableMetaCache {
|
public class TableMetaCache {
|
||||||
|
|
||||||
public static final String COLUMN_NAME = "Field";
|
public static final String COLUMN_NAME = "field";
|
||||||
public static final String COLUMN_TYPE = "Type";
|
public static final String COLUMN_TYPE = "type";
|
||||||
public static final String IS_NULLABLE = "Null";
|
public static final String IS_NULLABLE = "null";
|
||||||
public static final String COLUMN_KEY = "Key";
|
public static final String COLUMN_KEY = "key";
|
||||||
public static final String COLUMN_DEFAULT = "Default";
|
public static final String COLUMN_DEFAULT = "default";
|
||||||
public static final String EXTRA = "Extra";
|
public static final String EXTRA = "extra";
|
||||||
private MysqlConnection connection;
|
private MysqlConnection connection;
|
||||||
private boolean isOnRDS = false;
|
private boolean isOnRDS = false;
|
||||||
private boolean isOnPolarX = false;
|
private boolean isOnPolarX = false;
|
||||||
@@ -125,7 +125,7 @@ public class TableMetaCache {
|
|||||||
Map<String, Integer> nameMaps = new HashMap<>(6, 1f);
|
Map<String, Integer> nameMaps = new HashMap<>(6, 1f);
|
||||||
int index = 0;
|
int index = 0;
|
||||||
for (FieldPacket fieldPacket : packet.getFieldDescriptors()) {
|
for (FieldPacket fieldPacket : packet.getFieldDescriptors()) {
|
||||||
nameMaps.put(fieldPacket.getName(), index++);
|
nameMaps.put(StringUtils.lowerCase(fieldPacket.getName()), index++);
|
||||||
}
|
}
|
||||||
|
|
||||||
int size = packet.getFieldDescriptors().size();
|
int size = packet.getFieldDescriptors().size();
|
||||||
|
|||||||
Reference in New Issue
Block a user