MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:kgeorge Date:April 20 2007 4:01pm
Subject:bk commit into 5.0 tree (gkodinov:1.2459) BUG#27811
View as plain text  
Below is the list of changes that have just been committed into a local
5.0 repository of kgeorge. When kgeorge 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, 2007-04-20 19:01:30+03:00, gkodinov@stripped +3 -0
  Bug #27811: 
   FORCE_INIT_OF_VARS was not defined for the 
   debug builds on Windows. This caused LINT_INIT
   macro to be defined as NOP and this triggers
   false alarms about use of uninitialized with
   the runtime libs of some Visual Studio versions.
   Fixed by defining FORCE_INIT_OF_VARS to match the
   state of the Windows

  CMakeLists.txt@stripped, 2007-04-20 19:01:29+03:00, gkodinov@stripped +4 -0
    Bug #27811: added the missing build option

  mysql-test/r/windows.result@stripped, 2007-04-20 19:01:29+03:00, gkodinov@stripped +7 -0
    Bug #27811: test case

  mysql-test/t/windows.test@stripped, 2007-04-20 19:01:29+03:00, gkodinov@stripped +8 -0
    Bug #27811: test case

# 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:	gkodinov
# Host:	magare.gmz
# Root:	/home/kgeorge/mysql/work/B27811-5.0-opt

--- 1.7/CMakeLists.txt	2007-03-29 00:00:25 +03:00
+++ 1.8/CMakeLists.txt	2007-04-20 19:01:29 +03:00
@@ -26,6 +26,10 @@ ADD_DEFINITIONS(-D WITH_MYISAM_STORAGE_E
 ADD_DEFINITIONS(-D CMAKE_BUILD)
 ADD_DEFINITIONS(-D HAVE_YASSL)
 
+# Set debug options
+SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DFORCE_INIT_OF_VARS")
+SET(CMAKE_CXX_FLAGS_RELWITHDEBINFO "${CMAKE_CXX_FLAGS_RELWITHDEBINFO} -DFORCE_INIT_OF_VARS")
+
 SET (mysql_plugin_defs "${mysql_plugin_defs},builtin_myisam_plugin")
 
 

--- 1.4/mysql-test/r/windows.result	2006-12-10 17:40:03 +02:00
+++ 1.5/mysql-test/r/windows.result	2007-04-20 19:01:29 +03:00
@@ -12,3 +12,10 @@ Warnings:
 Warning	0	DATA DIRECTORY option ignored
 Warning	0	INDEX DIRECTORY option ignored
 drop table t1;
+CREATE TABLE t1 (a int, b int);
+INSERT INTO t1 VALUES (1,1);
+EXPLAIN SELECT * FROM t1 WHERE b =  (SELECT max(2));
+id	select_type	table	type	possible_keys	key	key_len	ref	rows	Extra
+1	PRIMARY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	Impossible WHERE noticed after reading const tables
+2	SUBQUERY	NULL	NULL	NULL	NULL	NULL	NULL	NULL	No tables used
+End of 5.0 tests.

--- 1.4/mysql-test/t/windows.test	2006-12-10 17:40:04 +02:00
+++ 1.5/mysql-test/t/windows.test	2007-04-20 19:01:29 +03:00
@@ -27,3 +27,11 @@ CREATE TABLE t1 ( `ID` int(6) ) data dir
 drop table t1;
 
 # End of 4.1 tests
+
+#
+# Bug #27811: The variable 'join_tab' is being used without being defined
+#
+CREATE TABLE t1 (a int, b int); INSERT INTO t1 VALUES (1,1);
+EXPLAIN SELECT * FROM t1 WHERE b =  (SELECT max(2));
+
+--echo End of 5.0 tests.
Thread
bk commit into 5.0 tree (gkodinov:1.2459) BUG#27811kgeorge20 Apr