Commit 9035d06e authored by Marcin Siodelski's avatar Marcin Siodelski

[5107] Avoid static cast from NULL to uint32_t.

parent 58859405
......@@ -253,7 +253,7 @@ public:
// host_id : INT UNSIGNED NOT NULL
// The host_id is auto_incremented by MySQL database,
// so we need to pass the NULL value
host_id_ = static_cast<uint32_t>(NULL);
host_id_ = 0;
bind_[0].buffer_type = MYSQL_TYPE_LONG;
bind_[0].buffer = reinterpret_cast<char*>(&host_id_);
bind_[0].is_unsigned = MLM_TRUE;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment