diff options
author | unknown <cmiller@zippy.cornsilk.net> | 2007-04-03 19:52:24 -0400 |
---|---|---|
committer | unknown <cmiller@zippy.cornsilk.net> | 2007-04-03 19:52:24 -0400 |
commit | 2879da7f847eeda8ebf7cdad769f665fe95f5259 (patch) | |
tree | f5182482cadf49899468ed490901464095a3484f /sql/sql_profile.h | |
parent | 46503d161ecc5756f0dd7130969e9ae9df303b31 (diff) | |
download | mariadb-git-2879da7f847eeda8ebf7cdad769f665fe95f5259.tar.gz |
Unreported minor bug: We start numbering query IDs at zero, which
is a special case in "SHOW PROFILE FOR QUERY n". No one can get
the zero item (which is always the statement that turns on profiling),
because zero represents the final item, internally.
Now, order the queries starting at one.
mysql-test/r/profiling.result:
Renumber the query IDs.
sql/sql_profile.cc:
Start the profile_id_counter at 1, to overstep the special-case
value of zero.
Unrelated, but looks similar: don't use -1 to initialize an unsigned
integer field. That causes warnings in some environments.
Diffstat (limited to 'sql/sql_profile.h')
0 files changed, 0 insertions, 0 deletions