summaryrefslogtreecommitdiff
path: root/sql/handler.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2012-10-18 11:19:28 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2012-10-18 11:19:28 +0200
commit4b4d74b517e8adb07bee4c1a0c1b05447afac086 (patch)
treeb7ab42ffd4d5244afc7527f34bb8bab5ba62016f /sql/handler.cc
parentbf106948e080887d2398e3694d50a705d15d006f (diff)
downloadmariadb-git-4b4d74b517e8adb07bee4c1a0c1b05447afac086.tar.gz
Do not DBUG_PRINT uninitialized variable. This avoid false positive from runtime checks in debug builds (Windows).
Diffstat (limited to 'sql/handler.cc')
-rw-r--r--sql/handler.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index fb10be678a0..356ae330201 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -2621,8 +2621,7 @@ int handler::update_auto_increment()
if (unlikely(nr == ULONGLONG_MAX))
DBUG_RETURN(HA_ERR_AUTOINC_ERANGE);
- DBUG_PRINT("info",("auto_increment: %llu nb_reserved_values: %llu",
- nr, nb_reserved_values));
+ DBUG_PRINT("info",("auto_increment: %llu",nr));
/* Store field without warning (Warning will be printed by insert) */
save_count_cuted_fields= thd->count_cuted_fields;
@@ -2640,6 +2639,8 @@ int handler::update_auto_increment()
}
if (append)
{
+ DBUG_PRINT("info",("nb_reserved_values: %llu",nb_reserved_values));
+
auto_inc_interval_for_cur_row.replace(nr, nb_reserved_values,
variables->auto_increment_increment);
auto_inc_intervals_count++;