diff options
author | unknown <venu@myvenu.com> | 2003-02-04 18:50:48 -0800 |
---|---|---|
committer | unknown <venu@myvenu.com> | 2003-02-04 18:50:48 -0800 |
commit | 15b099cf025817b73732e39deb7ea3f9aa2c9fab (patch) | |
tree | 6a2652dcfe4e59b5f26ae036c699d8f1ce92851b | |
parent | 5a7189cf8c238c991e2b590ee3bb968d13fed63c (diff) | |
download | mariadb-git-15b099cf025817b73732e39deb7ea3f9aa2c9fab.tar.gz |
Windows compile fixups (To be verified by respective devs)
sql/field.cc:
Windows - Cast (longlong -> uint)
sql/item_uniq.h:
Windows compile fix
sql/sql_derived.cc:
Windows - compile fix
-rw-r--r-- | sql/field.cc | 2 | ||||
-rw-r--r-- | sql/item_uniq.h | 2 | ||||
-rw-r--r-- | sql/sql_derived.cc | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sql/field.cc b/sql/field.cc index 7b21f179660..9697b6c158e 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -1913,7 +1913,7 @@ int Field_longlong::store(const char *from,uint len,CHARSET_INFO *cs) char *end; tmp= cs->scan(cs, from, from+len, MY_SEQ_SPACES); - len-= tmp; + len-= (uint)tmp; from+= tmp; my_errno=0; if (unsigned_flag) diff --git a/sql/item_uniq.h b/sql/item_uniq.h index ac004e747f8..5ffd10be7a5 100644 --- a/sql/item_uniq.h +++ b/sql/item_uniq.h @@ -50,7 +50,7 @@ public: fixed= 1; return 0; } - Item_sum *copy_or_same(THD* thd) + Item *copy_or_same(THD* thd) { return new Item_sum_unique_users(thd, *this); } diff --git a/sql/sql_derived.cc b/sql/sql_derived.cc index d1a232c35b6..ced3e3d4a98 100644 --- a/sql/sql_derived.cc +++ b/sql/sql_derived.cc @@ -71,7 +71,7 @@ int mysql_derived(THD *thd, LEX *lex, SELECT_LEX_UNIT *unit, TABLE_LIST *t) TABLE_LIST *tables= (TABLE_LIST *)sl->table_list.first; TMP_TABLE_PARAM tmp_table_param; bool is_union= sl->next_select() && sl->next_select()->linkage == UNION_TYPE; - bool is_subsel= sl->first_inner_unit(); + bool is_subsel= sl->first_inner_unit() ? 1: 0; SELECT_LEX_NODE *save_current_select= lex->current_select; DBUG_ENTER("mysql_derived"); |