summaryrefslogtreecommitdiff
path: root/sql/sql_insert.cc
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@mariadb.com>2017-03-13 23:13:24 +0000
committerVladislav Vaintroub <wlad@mariadb.com>2017-03-13 23:13:24 +0000
commit98be67266dc2f331e64ed5d875154fc6352f262a (patch)
tree0b7944f3dac7f8bbdece20a32caf8f8970b732c3 /sql/sql_insert.cc
parent9dc10d5851ab4ff38d81e68858de56fbb1d6743d (diff)
downloadmariadb-git-98be67266dc2f331e64ed5d875154fc6352f262a.tar.gz
Fix truncation of affected rows and insert id in select_insert::send_ok_packet
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r--sql/sql_insert.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc
index 4dacb875abe..88eb76ef1ed 100644
--- a/sql/sql_insert.cc
+++ b/sql/sql_insert.cc
@@ -3833,8 +3833,8 @@ bool select_insert::prepare_eof()
bool select_insert::send_ok_packet() {
char message[160]; /* status message */
- ulong row_count; /* rows affected */
- ulong id; /* last insert-id */
+ ulonglong row_count; /* rows affected */
+ ulonglong id; /* last insert-id */
DBUG_ENTER("select_insert::send_ok_packet");