Skip to content

Commit

Permalink
Merge pull request #3811 from actiontech/inner-2347
Browse files Browse the repository at this point in the history
[inner-2347] fix npe
  • Loading branch information
wenyh1 authored Sep 6, 2023
2 parents dd30300 + 1755e6c commit 341fdcd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,9 @@ private static RowDataPacket getRow(String stmt, String desc, String charset) {

HELPS.put("show @@statistic", "Turn off statistic information");
HELPS.put("enable @@statistic", "Turn on statistic sql");
HELPS.put("enable @@enableStatisticAnalysis", "Turn on statistic analysis sql('show @@sql.sum.user/table' or 'show @@sql.condition')");
HELPS.put("enable @@statisticAnalysis", "Turn on statistic analysis sql('show @@sql.sum.user/table' or 'show @@sql.condition')");
HELPS.put("disable @@statistic", "Turn off statistic sql");
HELPS.put("disable @@enableStatisticAnalysis", "Turn off statistic analysis sql('show @@sql.sum.user/table' or 'show @@sql.condition')");
HELPS.put("disable @@statisticAnalysis", "Turn off statistic analysis sql('show @@sql.sum.user/table' or 'show @@sql.condition')");
HELPS.put("reload @@statistic_table_size = ? [where table='?' | where table in (dble_information.tableA,...)]", "Statistic table size");
HELPS.put("reload @@samplingRate=?", "Reset the samplingRate size");
HELPS.put("show @@statistic_queue.usage", "Show the queue usage");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ public long getExaminedRows() {
}

public String getSqlDigest() {
if (init.compareAndSet(false, true)) {
if (init.compareAndSet(false, true) || this.sqlDigest == null) {
try {
if (stmt.equalsIgnoreCase("begin")) {
this.sqlDigest = "begin";
Expand Down

0 comments on commit 341fdcd

Please sign in to comment.