diff options
author | unknown <miguel@hegel.txg> | 2004-07-16 03:47:17 -0300 |
---|---|---|
committer | unknown <miguel@hegel.txg> | 2004-07-16 03:47:17 -0300 |
commit | 45cbab28f6363fe1cfa8228c22703d470c0f90f4 (patch) | |
tree | 279b9132a13ef3b7f72e2526cf48d4bfabc88c59 /sql/sql_insert.cc | |
parent | acdf855008a69cee6b2a9bce198d89a69c038073 (diff) | |
download | mariadb-git-45cbab28f6363fe1cfa8228c22703d470c0f90f4.tar.gz |
Fixes for bug #4571 (Windows compabilities)
sql/opt_range.cc:
Fix for unreferenced local variable, cast and indirection to different types
sql/sp_head.cc:
Fix for unreferenced variables and cast
sql/sql_acl.cc:
Fix for unreferenced variable
sql/sql_db.cc:
Fix for unreferenced variable and cast
sql/sql_insert.cc:
Fix for cast and redifinition of variable declared i (VC++ bug)
sql/sql_parse.cc:
Fix for cast
sql/sql_update.cc:
Fix for cast
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 08bf33e560d..33b99d4ccf9 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -407,7 +407,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, !thd->cuted_fields)) { thd->row_count_func= info.copied+info.deleted+info.updated; - send_ok(thd, thd->row_count_func, id); + send_ok(thd, (ulong) (ulong) thd->row_count_func, id); } else { @@ -420,7 +420,7 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, sprintf(buff, ER(ER_INSERT_INFO), (ulong) info.records, (ulong) (info.deleted+info.updated), (ulong) thd->cuted_fields); thd->row_count_func= info.copied+info.deleted+info.updated; - ::send_ok(thd, thd->row_count_func, (ulonglong)id,buff); + ::send_ok(thd, (ulong) thd->row_count_func, (ulonglong)id,buff); } free_underlaid_joins(thd, &thd->lex->select_lex); table->insert_values=0; @@ -453,6 +453,7 @@ static bool check_view_insertability(TABLE_LIST *view, ulong query_id) { DBUG_ENTER("check_key_in_view"); + uint i; TABLE *table= view->table; Item **trans= view->field_translation; Field **field_ptr= table->field; @@ -462,7 +463,7 @@ static bool check_view_insertability(TABLE_LIST *view, ulong query_id) view->contain_auto_increment= 0; /* check simplicity and prepare unique test of view */ - for (uint i= 0; i < num; i++) + for (i= 0; i < num; i++) { /* simple SELECT list entry (field without expression) */ if (trans[i]->type() != Item::FIELD_ITEM) @@ -473,7 +474,7 @@ static bool check_view_insertability(TABLE_LIST *view, ulong query_id) ((Item_field *)trans[i])->field->query_id= other_query_id; } /* unique test */ - for (uint i= 0; i < num; i++) + for (i= 0; i < num; i++) { Item_field *field= (Item_field *)trans[i]; if (field->field->query_id == query_id) @@ -1728,7 +1729,7 @@ bool select_insert::send_eof() sprintf(buff, ER(ER_INSERT_INFO), (ulong) info.records, (ulong) (info.deleted+info.updated), (ulong) thd->cuted_fields); thd->row_count_func= info.copied+info.deleted+info.updated; - ::send_ok(thd, thd->row_count_func, last_insert_id, buff); + ::send_ok(thd, (ulong) thd->row_count_func, last_insert_id, buff); DBUG_RETURN(0); } |