提交 3fbbc070 编写于 作者: S Serge Rider

#544 MySQL session props fix

上级 e0af5761
......@@ -27,28 +27,28 @@ import java.sql.ResultSet;
* MySQL session
*/
public class MySQLSession implements DBAServerSession {
private String pid;
private long pid;
private String user;
private String host;
private String db;
private String command;
private String time;
private long time;
private String state;
private String info;
public MySQLSession(ResultSet dbResult) {
this.pid = JDBCUtils.safeGetString(dbResult, "id");
this.pid = JDBCUtils.safeGetLong(dbResult, "id");
this.user = JDBCUtils.safeGetString(dbResult, "user");
this.host = JDBCUtils.safeGetString(dbResult, "host");
this.db = JDBCUtils.safeGetString(dbResult, "db");
this.command = JDBCUtils.safeGetString(dbResult, "command");
this.time = JDBCUtils.safeGetString(dbResult, "time");
this.time = JDBCUtils.safeGetLong(dbResult, "time");
this.state = JDBCUtils.safeGetString(dbResult, "state");
this.info = JDBCUtils.safeGetString(dbResult, "info");
}
@Property(viewable = true, order = 1)
public String getPid()
public long getPid()
{
return pid;
}
......@@ -78,7 +78,7 @@ public class MySQLSession implements DBAServerSession {
}
@Property(viewable = true, order = 6)
public String getTime()
public long getTime()
{
return time;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册