1. 14 Dec, 2006 1 commit
    • unknown's avatar
      Fixed bug #25027. · cbd1bd90
      unknown authored
      Blocked evaluation of constant objects of the classes
      Item_func_is_null and Item_is_not_null_test at the
      prepare phase in the cases when the objects used subqueries. 
      
      
      mysql-test/r/ps.result:
        Extended test case for bug #25027.
      mysql-test/t/ps.test:
        Extended test case for bug #25027.
      sql/sql_lex.cc:
        Returned back the assertion in st_select_lex_unit::set_limit,
        removed by the previous commit for this bug.
      cbd1bd90
  2. 13 Dec, 2006 1 commit
    • unknown's avatar
      Fixed bug #25027. · 2f78d5ca
      unknown authored
      Removed an assertion that was not valid for the cases where the query
      in a prepared statement contained a single-row non-correlated
      subquery that was used as an argument of the IS NULL predicate.
      
      
      mysql-test/r/ps.result:
        Added a test case for bug #25027.
      mysql-test/t/ps.test:
        Added a test case for bug #25027.
      2f78d5ca
  3. 12 Dec, 2006 4 commits
    • unknown's avatar
      Merge olga.mysql.com:/home/igor/mysql-4.1-opt · 22192d08
      unknown authored
      into  olga.mysql.com:/home/igor/mysql-5.0-opt
      
      
      sql/item_subselect.cc:
        Auto merged
      mysql-test/r/subselect.result:
        Manual merge
      mysql-test/t/subselect.test:
        Manual merge
      sql/item_subselect.h:
        Manual merge
      22192d08
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/4.1-opt · 41087253
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.0-opt
      
      
      sql/sql_class.h:
        Auto merged
      41087253
    • unknown's avatar
      Merge mysql.com:/home/gluh/MySQL/Merge/5.0 · 7433bdfa
      unknown authored
      into  mysql.com:/home/gluh/MySQL/Merge/5.0-opt
      
      
      7433bdfa
    • unknown's avatar
      Fixed bug #24670: optimizations that are legal only for subqueries without tables · 33446269
      unknown authored
      and no WHERE condition were applied for any subquery without tables.
      
      
      
      mysql-test/r/subselect.result:
        Added a test case for bug #24670.
      mysql-test/t/subselect.test:
        Added a test case for bug #24670.
      sql/item_subselect.cc:
        Fixed bug #24670: optimizations that are legal only for subqueries without tables
        and no WHERE condition were applied for any subquery without tables.
        
        Removed an assertion that caused an abort for subqueries without tables and no 
        WHERE condition. 
        Blocked substitution of a single-row subquery without tables for the constant 
        row from its select list when the subquery contained a WHERE condition.
        This optimization is valid only for subquries without tables with no conditions.
        Any subquery without tables with WHERE clause returns NULL if the WHERE condition
        is FALSE. Erroneously it was always considered as non-nullable that could trigger 
        another optimization concerning IS NULL predicates which is applicable only for 
        non-nullable expressions and ultimately led to a wrong result returned by the outer
        query.
        Added a proper implementation of the virtual method may_be_null for class 
        subselect_single_select_engine.
      sql/item_subselect.h:
        Fixed bug #24670: optimizations that are legal only for subqueries without tables
        and no WHERE condition were applied for any subquery without tables.
        Made method may_by_null for class subselect_engine vvirtual.
      33446269
  4. 11 Dec, 2006 1 commit
  5. 07 Dec, 2006 2 commits
    • unknown's avatar
      merging fix · e8be5f6d
      unknown authored
      
      mysql-test/r/gis.result:
        result fixed
      mysql-test/t/gis.test:
        path to datafile fixed
      e8be5f6d
    • unknown's avatar
      merging · 7341315d
      unknown authored
      
      mysql-test/r/gis.result:
        result fixed
      sql/field.cc:
        Field_*::reset() now returns int
      sql/sql_load.cc:
        merging fix
      7341315d
  6. 06 Dec, 2006 6 commits
    • unknown's avatar
      Only call mysql_server_end if mysql_server_init has been called. · d5e094d7
      unknown authored
      Remove DBUG_ENTER in my_end
      
      
      client/mysqltest.c:
        Call 'mysql_server_end' as last function in 'free_used_memory'
        Don't use DBUG_VOID_RETURN after mysql_server_end in free_used_memory
        Only call mysql_server_end if mysql_server_init has been called
      d5e094d7
    • unknown's avatar
    • unknown's avatar
      Merge mysql.com:/home/hf/work/22372/my41-22372 · 8f3c395c
      unknown authored
      into  mysql.com:/home/hf/work/22372/my50-22372
      
      
      mysql-test/r/gis.result:
        merging
      mysql-test/t/gis.test:
        merging
      sql/field.cc:
        merging
      sql/field.h:
        merging
      sql/sql_load.cc:
        merging
      8f3c395c
    • unknown's avatar
      bug #22372 · 63fce3a2
      unknown authored
      datafile added to be used in gis.test
      
      
      mysql-test/std_data/bad_gis_data.dat:
        New BitKeeper file ``mysql-test/std_data/bad_gis_data.dat''
      63fce3a2
    • unknown's avatar
      bug #22372 (LOAD DATA crashes the table with the geometry field) · fa115a0f
      unknown authored
      The problem is that the GEOMETRY NOT NULL can't automatically set
      any value as a default one. We always tried to complete LOAD DATA
      command even if there's not enough data in file. That doesn't work
      for GEOMETRY NOT NULL. Now Field_*::reset() returns an error sign
      and it's checked in mysql_load()
      
      
      mysql-test/r/gis.result:
        test result
      mysql-test/t/gis.test:
        testcase
      sql/field.cc:
        reset() now returns error sign
      sql/field.h:
        Field_*::reset() now returns error sign if the field can't be reset
      sql/sql_load.cc:
        check if field can't be reset and return error if it's so
      fa115a0f
    • unknown's avatar
      Adjust replace to mask win paths · c0efc717
      unknown authored
      c0efc717
  7. 05 Dec, 2006 13 commits
  8. 04 Dec, 2006 12 commits