|
@@ -31,12 +31,12 @@ import com.google.common.cache.LoadingCache;
|
|
|
*/
|
|
|
public class TableMetaCache {
|
|
|
|
|
|
- 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";
|
|
|
+ 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;
|
|
@@ -125,7 +125,7 @@ public class TableMetaCache {
|
|
|
Map<String, Integer> nameMaps = new HashMap<>(6, 1f);
|
|
|
int index = 0;
|
|
|
for (FieldPacket fieldPacket : packet.getFieldDescriptors()) {
|
|
|
- nameMaps.put(fieldPacket.getName(), index++);
|
|
|
+ nameMaps.put(StringUtils.lowerCase(fieldPacket.getName()), index++);
|
|
|
}
|
|
|
|
|
|
int size = packet.getFieldDescriptors().size();
|