mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
bug fixed for sql parser
This commit is contained in:
@@ -17,14 +17,23 @@ package com.alibaba.druid.stat;
|
||||
|
||||
public class TableStat {
|
||||
|
||||
int selectCount = 0;
|
||||
int updateCount = 0;
|
||||
int deleteCount = 0;
|
||||
int insertCount = 0;
|
||||
int dropCount = 0;
|
||||
int mergeCount = 0;
|
||||
int createCount = 0;
|
||||
int alterCount = 0;
|
||||
int selectCount = 0;
|
||||
int updateCount = 0;
|
||||
int deleteCount = 0;
|
||||
int insertCount = 0;
|
||||
int dropCount = 0;
|
||||
int mergeCount = 0;
|
||||
int createCount = 0;
|
||||
int alterCount = 0;
|
||||
int createIndexCount = 0;
|
||||
|
||||
public int getCreateIndexCount() {
|
||||
return createIndexCount;
|
||||
}
|
||||
|
||||
public void incrementCreateIndexCount() {
|
||||
createIndexCount++;
|
||||
}
|
||||
|
||||
public int getAlterCount() {
|
||||
return alterCount;
|
||||
@@ -136,6 +145,9 @@ public class TableStat {
|
||||
if (alterCount > 0) {
|
||||
buf.append("Alter");
|
||||
}
|
||||
if (createIndexCount > 0) {
|
||||
buf.append("CreateIndex");
|
||||
}
|
||||
|
||||
return buf.toString();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user