diff options
author | unknown <monty@hundin.mysql.fi> | 2002-06-05 16:42:07 +0300 |
---|---|---|
committer | unknown <monty@hundin.mysql.fi> | 2002-06-05 16:42:07 +0300 |
commit | 47c4352b5842383bbdbbfea3c0b5e91716c87058 (patch) | |
tree | 31f8bd37856d885a833f1796099472d9a0c9c8cd /sql | |
parent | 32113efe2a7d32bfa5820cda37164436a53719cc (diff) | |
download | mariadb-git-47c4352b5842383bbdbbfea3c0b5e91716c87058.tar.gz |
Fixed mysql_info() result when using INSERT DELAYED
Docs/manual.texi:
changelog
Diffstat (limited to 'sql')
-rw-r--r-- | sql/sql_insert.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index d8861390d87..18100996f52 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -299,7 +299,9 @@ int mysql_insert(THD *thd,TABLE_LIST *table_list, List<Item> &fields, { char buff[160]; if (duplic == DUP_IGNORE) - sprintf(buff,ER(ER_INSERT_INFO),info.records,info.records-info.copied, + sprintf(buff,ER(ER_INSERT_INFO),info.records, + (lock_type == TL_WRITE_DELAYED) ? 0 : + info.records-info.copied, thd->cuted_fields); else sprintf(buff,ER(ER_INSERT_INFO),info.records,info.deleted, |