List:Commits« Previous MessageNext Message »
From:Georgi Kodinov Date:August 5 2010 12:12pm
Subject:bzr push into mysql-5.1-bugteam branch (Georgi.Kodinov:3474 to 3475)
Bug#42144
View as plain text  
 3475 Georgi Kodinov	2010-08-05
      Addendum to bug #42144 : fixed a wrong type conversation causing plugin tests
      failures on sparc64.

    modified:
      sql/sql_plugin.cc
 3474 Martin Hansson	2010-08-05
      Bug#54568: create view cause Assertion failed: 0, 
      file .\item_subselect.cc, line 836
      
      IN quantified predicates are never executed directly. They are rather wrapped
      inside nodes called IN Optimizers (Item_in_optimizer) which take care of the
      execution. However, this is not done during query preparation. Unfortunately
      the LIKE predicate pre-evaluates constant right-hand side arguments even
      during name resolution. Likely this is meant as an optimization.
      
      Fixed by not pre-evaluating LIKE arguments in view prepare mode.

    modified:
      mysql-test/r/subselect4.result
      mysql-test/t/subselect4.test
      sql/item_cmpfunc.cc
=== modified file 'sql/sql_plugin.cc'
--- a/sql/sql_plugin.cc	2010-08-04 12:58:09 +0000
+++ b/sql/sql_plugin.cc	2010-08-05 12:10:24 +0000
@@ -3319,7 +3319,7 @@ static int test_plugin_options(MEM_ROOT 
      Set plugin loading policy from option value. First element in the option
      list is always the <plugin name> option value.
     */
-    plugin_load_policy= (enum_plugin_load_policy)*(uint*)opts[0].value;
+    plugin_load_policy= (enum_plugin_load_policy)*(ulong*)opts[0].value;
   }
 
   disable_plugin= (plugin_load_policy == PLUGIN_OFF);


Attachment: [text/bzr-bundle] bzr/georgi.kodinov@oracle.com-20100805121024-u22ixefrh7z7zu3m.bundle
Thread
bzr push into mysql-5.1-bugteam branch (Georgi.Kodinov:3474 to 3475)Bug#42144Georgi Kodinov5 Aug