Skip to content

Commit

Permalink
hostgroup sign in stats_mysql_query_digest #2285
Browse files Browse the repository at this point in the history
  • Loading branch information
renecannao committed Oct 8, 2019
1 parent 1ed79a7 commit 5054998
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/Query_Processor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,11 @@ class QP_query_digest_stats {
//sprintf(qdsp->max_time,"%llu",max_time);
my_itoa(qdsp->max_time,max_time);
pta[10]=qdsp->max_time;
//sprintf(qdsp->hid,"%d",hid);
my_itoa(qdsp->hid,hid);
// we are reverting this back to the use of sprintf instead of my_itoa
// because with my_itoa we are losing the sign
// see issue #2285
sprintf(qdsp->hid,"%d",hid);
//my_itoa(qdsp->hid,hid);
pta[11]=qdsp->hid;
//sprintf(qdsp->rows_affected,"%llu",rows_affected);
my_itoa(qdsp->rows_affected,rows_affected);
Expand Down

0 comments on commit 5054998

Please sign in to comment.