Skip to content

Commit 98be672

Browse files
committed
Fix truncation of affected rows and insert id in select_insert::send_ok_packet
1 parent 9dc10d5 commit 98be672

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sql/sql_insert.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3833,8 +3833,8 @@ bool select_insert::prepare_eof()
38333833

38343834
bool select_insert::send_ok_packet() {
38353835
char message[160]; /* status message */
3836-
ulong row_count; /* rows affected */
3837-
ulong id; /* last insert-id */
3836+
ulonglong row_count; /* rows affected */
3837+
ulonglong id; /* last insert-id */
38383838

38393839
DBUG_ENTER("select_insert::send_ok_packet");
38403840

0 commit comments

Comments
 (0)