Commit edb63759 authored by Sergei Golubchik's avatar Sergei Golubchik

compilation warning on windows

parent 2484a2e4
...@@ -202,7 +202,7 @@ class partition_element :public Sql_alloc ...@@ -202,7 +202,7 @@ class partition_element :public Sql_alloc
engine_type(NULL), connect_string(null_clex_str), part_state(PART_NORMAL), engine_type(NULL), connect_string(null_clex_str), part_state(PART_NORMAL),
nodegroup_id(UNDEF_NODEGROUP), has_null_value(FALSE), nodegroup_id(UNDEF_NODEGROUP), has_null_value(FALSE),
signed_flag(FALSE), max_value(FALSE), signed_flag(FALSE), max_value(FALSE),
id(UINT32_MAX), id(UINT_MAX32),
empty(true) empty(true)
{} {}
partition_element(partition_element *part_elem) partition_element(partition_element *part_elem)
......
...@@ -1001,7 +1001,7 @@ bool partition_info::vers_setup_expression(THD * thd, uint32 alter_add) ...@@ -1001,7 +1001,7 @@ bool partition_info::vers_setup_expression(THD * thd, uint32 alter_add)
continue; continue;
} }
/* Newly added element is inserted before AS_OF_NOW. */ /* Newly added element is inserted before AS_OF_NOW. */
if (el->id == UINT32_MAX || el->type() == partition_element::CURRENT) if (el->id == UINT_MAX32 || el->type() == partition_element::CURRENT)
{ {
DBUG_ASSERT(table && table->s); DBUG_ASSERT(table && table->s);
Vers_min_max_stats *stat_trx_end= new (&table->s->mem_root) Vers_min_max_stats *stat_trx_end= new (&table->s->mem_root)
......
...@@ -57,11 +57,11 @@ struct Vers_part_info : public Sql_alloc ...@@ -57,11 +57,11 @@ struct Vers_part_info : public Sql_alloc
{ {
if (now_part) if (now_part)
{ {
DBUG_ASSERT(now_part->id != UINT32_MAX); DBUG_ASSERT(now_part->id != UINT_MAX32);
DBUG_ASSERT(now_part->type() == partition_element::CURRENT); DBUG_ASSERT(now_part->type() == partition_element::CURRENT);
DBUG_ASSERT(!fully || (bool) hist_part); DBUG_ASSERT(!fully || (bool) hist_part);
DBUG_ASSERT(!hist_part || ( DBUG_ASSERT(!hist_part || (
hist_part->id != UINT32_MAX && hist_part->id != UINT_MAX32 &&
hist_part->type() == partition_element::HISTORY)); hist_part->type() == partition_element::HISTORY));
return true; return true;
} }
...@@ -406,7 +406,7 @@ class partition_info : public Sql_alloc ...@@ -406,7 +406,7 @@ class partition_info : public Sql_alloc
{ {
DBUG_ASSERT(table && table->s); DBUG_ASSERT(table && table->s);
DBUG_ASSERT(vers_info && vers_info->initialized()); DBUG_ASSERT(vers_info && vers_info->initialized());
DBUG_ASSERT(table->s->hist_part_id != UINT32_MAX); DBUG_ASSERT(table->s->hist_part_id != UINT_MAX32);
if (table->s->hist_part_id == vers_info->hist_part->id) if (table->s->hist_part_id == vers_info->hist_part->id)
return vers_info->hist_part; return vers_info->hist_part;
......
...@@ -5500,7 +5500,7 @@ opt_part_values: ...@@ -5500,7 +5500,7 @@ opt_part_values:
else else
{ {
part_info->vers_init_info(thd); part_info->vers_init_info(thd);
elem->id= UINT32_MAX; elem->id= UINT_MAX32;
} }
DBUG_ASSERT(part_info->vers_info); DBUG_ASSERT(part_info->vers_info);
if (part_info->vers_info->now_part) if (part_info->vers_info->now_part)
......
...@@ -583,10 +583,6 @@ enum vers_sys_type_t ...@@ -583,10 +583,6 @@ enum vers_sys_type_t
VERS_TRX_ID VERS_TRX_ID
}; };
#ifndef UINT32_MAX
#define UINT32_MAX (4294967295U)
#endif
/** /**
This structure is shared between different table objects. There is one This structure is shared between different table objects. There is one
instance of table share per one table in the database. instance of table share per one table in the database.
...@@ -791,7 +787,7 @@ struct TABLE_SHARE ...@@ -791,7 +787,7 @@ struct TABLE_SHARE
void vers_init() void vers_init()
{ {
hist_part_id= UINT32_MAX; hist_part_id= UINT_MAX32;
busy_rotation= false; busy_rotation= false;
stat_trx= NULL; stat_trx= NULL;
stat_serial= 0; stat_serial= 0;
......
...@@ -869,7 +869,7 @@ struct row_prebuilt_t { ...@@ -869,7 +869,7 @@ struct row_prebuilt_t {
{ {
ut_ad(col < n_template); ut_ad(col < n_template);
ut_ad(mysql_template); ut_ad(mysql_template);
for (int i = col; i < n_template; ++i) { for (ulint i = col; i < n_template; ++i) {
const mysql_row_templ_t* templ = &mysql_template[i]; const mysql_row_templ_t* templ = &mysql_template[i];
if (!templ->is_virtual && templ->col_no == col) { if (!templ->is_virtual && templ->col_no == col) {
return templ; return templ;
......
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