Commit 6f8ef498 authored by ramil@mysql.com's avatar ramil@mysql.com

A fix (bug #11153: Ambiguous call to overloaded function, acording to Visual Studio 6)

parent ab674106
...@@ -601,7 +601,7 @@ void Item_exists_subselect::fix_length_and_dec() ...@@ -601,7 +601,7 @@ void Item_exists_subselect::fix_length_and_dec()
max_length= 1; max_length= 1;
max_columns= engine->cols(); max_columns= engine->cols();
/* We need only 1 row to determine existence */ /* We need only 1 row to determine existence */
unit->global_parameters->select_limit= new Item_int(1); unit->global_parameters->select_limit= new Item_int((int32) 1);
} }
double Item_exists_subselect::val_real() double Item_exists_subselect::val_real()
......
...@@ -7985,7 +7985,7 @@ handler: ...@@ -7985,7 +7985,7 @@ handler:
LEX *lex=Lex; LEX *lex=Lex;
lex->sql_command = SQLCOM_HA_READ; lex->sql_command = SQLCOM_HA_READ;
lex->ha_rkey_mode= HA_READ_KEY_EXACT; /* Avoid purify warnings */ lex->ha_rkey_mode= HA_READ_KEY_EXACT; /* Avoid purify warnings */
lex->current_select->select_limit= new Item_int(1); lex->current_select->select_limit= new Item_int((int32) 1);
lex->current_select->offset_limit= 0; lex->current_select->offset_limit= 0;
if (!lex->current_select->add_table_to_list(lex->thd, $2, 0, 0)) if (!lex->current_select->add_table_to_list(lex->thd, $2, 0, 0))
YYABORT; YYABORT;
......
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