mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for SchemaStat
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user