From 98be67266dc2f331e64ed5d875154fc6352f262a Mon Sep 17 00:00:00 2001 From: Vladislav Vaintroub Date: Mon, 13 Mar 2017 23:13:24 +0000 Subject: [PATCH] Fix truncation of affected rows and insert id in select_insert::send_ok_packet --- sql/sql_insert.cc | 4 ++-- 1 file 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");