summaryrefslogtreecommitdiff
path: root/sql/sql_error.cc
diff options
context:
space:
mode:
authorunknown <venu@myvenu.com>2003-04-30 00:02:28 -0700
committerunknown <venu@myvenu.com>2003-04-30 00:02:28 -0700
commit05af39d59102c5b46f71ca4d3626feba2c3c777a (patch)
treecabb1435029397264db6d20a3a7da3ab9fed3d00 /sql/sql_error.cc
parent998dc6468baa7d985072596fa4c4c657e073157e (diff)
downloadmariadb-git-05af39d59102c5b46f71ca4d3626feba2c3c777a.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_error.cc')
-rw-r--r--sql/sql_error.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_error.cc b/sql/sql_error.cc
index 3b9c329d5e5..db0dbe0dedc 100644
--- a/sql/sql_error.cc
+++ b/sql/sql_error.cc
@@ -79,6 +79,7 @@ void mysql_reset_errors(THD *thd)
free_root(&thd->warn_root,MYF(0));
bzero((char*) thd->warn_count, sizeof(thd->warn_count));
thd->warn_list.empty();
+ thd->row_count= 1; // by default point to row 1
}
DBUG_VOID_RETURN;
}