summaryrefslogtreecommitdiff
path: root/sql/sql_update.cc
diff options
context:
space:
mode:
authorunknown <miguel@hegel.txg>2004-07-16 03:47:17 -0300
committerunknown <miguel@hegel.txg>2004-07-16 03:47:17 -0300
commit45cbab28f6363fe1cfa8228c22703d470c0f90f4 (patch)
tree279b9132a13ef3b7f72e2526cf48d4bfabc88c59 /sql/sql_update.cc
parentacdf855008a69cee6b2a9bce198d89a69c038073 (diff)
downloadmariadb-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_update.cc')
-rw-r--r--sql/sql_update.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_update.cc b/sql/sql_update.cc
index 591a2dc0807..7d49c422194 100644
--- a/sql/sql_update.cc
+++ b/sql/sql_update.cc
@@ -421,7 +421,7 @@ int mysql_update(THD *thd,
(ulong) thd->cuted_fields);
thd->row_count_func=
(thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated;
- send_ok(thd, thd->row_count_func,
+ send_ok(thd, (ulong) thd->row_count_func,
thd->insert_id_used ? thd->insert_id() : 0L,buff);
DBUG_PRINT("info",("%d records updated",updated));
}
@@ -1208,7 +1208,7 @@ bool multi_update::send_eof()
(ulong) thd->cuted_fields);
thd->row_count_func=
(thd->client_capabilities & CLIENT_FOUND_ROWS) ? found : updated;
- ::send_ok(thd, thd->row_count_func,
+ ::send_ok(thd, (ulong) thd->row_count_func,
thd->insert_id_used ? thd->insert_id() : 0L,buff);
return 0;
}