Skip to content

Commit

Permalink
bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
wenshao committed Aug 14, 2013
1 parent bf0ee5d commit 7a7f771
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 6 deletions.
34 changes: 31 additions & 3 deletions doc/druid-monitor-sql.sql
Original file line number Diff line number Diff line change
@@ -1,3 +1,31 @@
INSERT INTO druid_sql (domain, app, cluster, host, pid
, collectTime, sqlHash, dataSource, lastStartTime, batchTotal
, batchToMax, execSuccessCount, execNanoTotal, execNanoMax, running
, concurrentMax, rsHoldTime, execRsHoldTime, name, file
, dbType, execNanoMaxOccurTime, errorCount, errorLastMsg, errorLastClass
, errorLastStackTrace, errorLastTime, updateCount, updateCountMax, fetchRowCount
, fetchRowCountMax, inTxnCount, lastSlowParameters, clobOpenCount, blobOpenCount
, readStringLength, readBytesLength, inputStreamOpenCount, readerOpenCount, h1
, h10, h100, h1000, h10000, h100000
, h1000000, hmore, eh1, eh10, eh100
, eh1000, eh10000, eh100000, eh1000000, ehmore
, f1, f10, f100, f1000, f10000
, fmore, u1, u10, u100, u1000
, u10000, umore)
VALUES (?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?
, ?, ?)
CREATE TABLE druid_sql (
id bigint(20) NOT NULL,
domain varchar(45),
Expand All @@ -16,8 +44,8 @@ CREATE TABLE druid_sql (
execNanoMax bigint(20),
running int(10),
concurrentMax int(10),
running bigint(20),
executeAndResultSetHoldTime bigint(20),
rsHoldTime bigint(20),
execRsHoldTime bigint(20),
name varchar(256),
file varchar(256),
dbType varchar(256),
Expand Down Expand Up @@ -67,5 +95,5 @@ CREATE TABLE druid_sql (
u1000 int(10),
u10000 int(10),
umore int(10),
PRIAMRY KEY (id)
PRIMARY KEY (id)
)
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,7 @@ public boolean visit(MySqlPrimaryKey x) {
print(' ');
}

print("PRIAMRY KEY");
print("PRIMARY KEY");

if (x.getIndexType() != null) {
print(" USING ");
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/alibaba/druid/stat/JdbcSqlStatValue.java
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ public class JdbcSqlStatValue {
@MField
protected int concurrentMax;

@MField(name = "running")
@MField(name = "rsHoldTime")
protected long resultSetHoldTimeNano;

@MField
@MField(name = "execRsHoldTime")
protected long executeAndResultSetHoldTime;

@MField
Expand Down

0 comments on commit 7a7f771

Please sign in to comment.