bug fixed for SchemaStat

This commit is contained in:
高铁
2016-05-21 03:05:25 +08:00
parent eb11985876
commit f6ce8b6561
@@ -1292,7 +1292,9 @@ public class SchemaStatVisitor extends SQLASTVisitorAdapter {
String columnName = x.getName().toString();
Column column = addColumn(tableName, columnName);
column.setDataType(x.getDataType().getName());
if (x.getDataType() != null) {
column.setDataType(x.getDataType().getName());
}
return false;
}