diff options
author | unknown <venu@myvenu.com> | 2003-04-30 00:02:28 -0700 |
---|---|---|
committer | unknown <venu@myvenu.com> | 2003-04-30 00:02:28 -0700 |
commit | 58613a85fdc72e2357b6a4586e9737753ac06235 (patch) | |
tree | cabb1435029397264db6d20a3a7da3ab9fed3d00 /sql/sql_select.cc | |
parent | 1f4309fa7e3fa703145374e7050647766a25cd02 (diff) | |
download | mariadb-git-58613a85fdc72e2357b6a4586e9737753ac06235.tar.gz |
Support of warnings for all DML statements (Insert, Update and Alter)
Fix LOAD DATA INFILE warnings to have a better meanigful messages
Fix to make the mysql command line to automatically show the warnings count for all basic commands
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 18768099f0f..cc513433aaf 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -5018,6 +5018,7 @@ sub_select(JOIN *join,JOIN_TAB *join_tab,bool end_of_records) ha_rows found_records=join->found_records; READ_RECORD *info= &join_tab->read_record; + join->thd->row_count= 0; do { if (join->thd->killed) // Aborted by user @@ -5026,6 +5027,7 @@ sub_select(JOIN *join,JOIN_TAB *join_tab,bool end_of_records) return -2; /* purecov: inspected */ } join->examined_rows++; + join->thd->row_count++; if (!on_expr || on_expr->val_int()) { found=1; |