|
@@ -39,10 +39,10 @@ public class DBDialectMySQL extends DBDialect {
|
|
|
public void fillColumnField(ColumnField field, Connection conn, ResultSet rs, Set<String> pkSet) throws SQLException {
|
|
public void fillColumnField(ColumnField field, Connection conn, ResultSet rs, Set<String> pkSet) throws SQLException {
|
|
|
super.fillColumnField(field, conn, rs, pkSet);
|
|
super.fillColumnField(field, conn, rs, pkSet);
|
|
|
int dataType = rs.getInt("DATA_TYPE");
|
|
int dataType = rs.getInt("DATA_TYPE");
|
|
|
- if (isInteger(dataType)) {
|
|
|
|
|
- int columnSize = rs.getInt("COLUMN_SIZE")+1;
|
|
|
|
|
- field.setLen(columnSize);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+// if (isInteger(dataType)) {
|
|
|
|
|
+// int columnSize = rs.getInt("COLUMN_SIZE")+1;
|
|
|
|
|
+// field.setLen(columnSize);
|
|
|
|
|
+// }
|
|
|
String isAutoincrement = rs.getString("IS_AUTOINCREMENT");
|
|
String isAutoincrement = rs.getString("IS_AUTOINCREMENT");
|
|
|
field.setAutoIncrement(!"NO".equalsIgnoreCase(isAutoincrement));
|
|
field.setAutoIncrement(!"NO".equalsIgnoreCase(isAutoincrement));
|
|
|
}
|
|
}
|