List:Commits« Previous MessageNext Message »
From:Ignacio Galarza Date:August 17 2006 10:08pm
Subject:bk commit into 5.0 tree (iggy:1.2245) BUG#19024
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of iggy. When iggy does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-08-17 18:08:05-04:00, iggy@stripped +3 -0
  Bug #19024- SHOW COUNT(*) WARNINGS not return Errors
  
  The server variable warning_count should include the number of warnings, errors and notes according to the manual.

  mysql-test/r/user_var.result@stripped, 2006-08-17 18:08:03-04:00, iggy@stripped +8 -0
    Added warning_count results.

  mysql-test/t/user_var.test@stripped, 2006-08-17 18:08:03-04:00, iggy@stripped +8 -0
    Added test case for warning_count.

  sql/set_var.cc@stripped, 2006-08-17 18:08:03-04:00, iggy@stripped +1 -0
    Added number errors to warning_count. 

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	iggy
# Host:	rolltop.ignatz42.dyndns.org
# Root:	/mnt/storeage/mysql-5.0-maint_19024

--- 1.161/sql/set_var.cc	2006-08-17 18:08:10 -04:00
+++ 1.162/sql/set_var.cc	2006-08-17 18:08:10 -04:00
@@ -2917,6 +2917,7 @@
 {
   thd->sys_var_tmp.long_value=
     (thd->warn_count[(uint) MYSQL_ERROR::WARN_LEVEL_NOTE] +
+     thd->warn_count[(uint) MYSQL_ERROR::WARN_LEVEL_ERROR] +
      thd->warn_count[(uint) MYSQL_ERROR::WARN_LEVEL_WARN]);
   return (byte*) &thd->sys_var_tmp.long_value;
 }

--- 1.39/mysql-test/r/user_var.result	2006-08-17 18:08:10 -04:00
+++ 1.40/mysql-test/r/user_var.result	2006-08-17 18:08:10 -04:00
@@ -292,3 +292,11 @@
 @a
 18446744071710965857
 drop table bigfailure;
+insert into city 'blah';
+ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''blah'' at line 1
+SELECT @@warning_count;
+@@warning_count
+1
+SELECT @@error_count;
+@@error_count
+1

--- 1.34/mysql-test/t/user_var.test	2006-08-17 18:08:10 -04:00
+++ 1.35/mysql-test/t/user_var.test	2006-08-17 18:08:10 -04:00
@@ -202,3 +202,11 @@
 SELECT @a;
 
 drop table bigfailure;
+
+#
+# Bug#19024 - SHOW COUNT(*) WARNINGS not return Errors 
+#
+--error 1064
+insert into city 'blah';
+SELECT @@warning_count;
+SELECT @@error_count;
Thread
bk commit into 5.0 tree (iggy:1.2245) BUG#19024Ignacio Galarza18 Aug