1. 02 Feb, 2005 1 commit
    • unknown's avatar
      Fix QUOTE() to not reuse the input field for output, which resulted in · 6d0d03da
      unknown authored
      incorrect results when the input was a constant across a multi-row SELECT
      statement. (Bug #8248)
      
      
      sql/item_strfunc.h:
        Add tmp_value member
      sql/item_strfunc.cc:
        Always allocate a new string for QUOTE(), in case the field is being reused
        for multiple rows.
      mysql-test/t/func_str.test:
        Add regression test
      mysql-test/r/func_str.result:
        Add test results
      6d0d03da
  2. 01 Feb, 2005 6 commits
  3. 31 Jan, 2005 6 commits
  4. 30 Jan, 2005 1 commit
    • unknown's avatar
      Bug#7011 · 934fde09
      unknown authored
        Fix replication for multi-update
        new test - rpl_multi_update2
      
      
      sql/mysql_priv.h:
        Bug#7011
          New function mysql_multi_update_lock()
      sql/sql_parse.cc:
        Bug#7011
          New function check_multi_update_lock()
          For multi-update on slave, perform an early open&lock
      sql/sql_update.cc:
        Bug#7011
          Split out multi-update locking into its own function,
            mysql_multi_update_lock()
      934fde09
  5. 28 Jan, 2005 3 commits
  6. 27 Jan, 2005 2 commits
    • unknown's avatar
      configure.in: · bde9e860
      unknown authored
        Add -DDBUG_ON to CXXFLAGS whenever it is added to CFLAGS.
        Thus, sql/ha_innodb.cc will be compiled with the same
        setting of UNIV_DEBUG as the rest of InnoDB,
        i.e., --with-debug enables InnoDB ut_ad() assertions
        everywhere.
      
      
      configure.in:
        Add -DDBUG_ON to CXXFLAGS whenever it is added to CFLAGS.
        Thus, sql/ha_innodb.cc will be compiled with the same
        setting of UNIV_DEBUG as the rest of InnoDB,
        i.e., --with-debug enables InnoDB ut_ad() assertions
        everywhere.
      bde9e860
    • unknown's avatar
      InnoDB: Tolerate negative return values from ftell(). · a12d52a1
      unknown authored
      
      sql/ha_innodb.cc:
        Tolerate negative return values from ftell().
      a12d52a1
  7. 26 Jan, 2005 2 commits
  8. 25 Jan, 2005 4 commits
    • unknown's avatar
      order_by.result, order_by.test: · 8deafa80
      unknown authored
        Added a test case for bug #7672.
      sql_yacc.yy:
        Fixed bug #7672.
        Made queries of the form (SELECT ...) ORDER BY ... to
        be equivalent to SELECT ... ORDER BY ...
      
      
      sql/sql_yacc.yy:
        Fixed bug #7672.
        Made queries of the form (SELECT ...) ORDER BY ... to
        be equivalent to SELECT ... ORDER BY ...
      mysql-test/t/order_by.test:
        Added a test case for bug #7672.
      mysql-test/r/order_by.result:
        Added a test case for bug #7672.
      8deafa80
    • unknown's avatar
      Always call vio_in_addr() so that thd->remote is · e1b8a004
      unknown authored
      always initialized. (Bug #5569)
      
      
      vio/viosocket.c:
        Remove comment that is no longer correct
      sql/sql_parse.cc:
        Always call vio_in_addr() on successful connection,
        so that thd->remote always gets set
      vio/viossl.c:
        Remove comment that is no longer correct
      e1b8a004
    • unknown's avatar
      InnoDB: Backport innodb_autoextend_increment from 4.1 · f35117ea
      unknown authored
      
      innobase/include/srv0srv.h:
        Add configuration variable srv_auto_extend_increment
      innobase/srv/srv0srv.c:
        Add configuration variable srv_auto_extend_increment
      sql/ha_innodb.h:
        Add configuration variable srv_auto_extend_increment
      sql/mysqld.cc:
        Add startup option innodb_autoextend_increment
      sql/set_var.cc:
        Add settable global variable innodb_autoextend_increment
      f35117ea
    • unknown's avatar
      InnoDB: Enable ut_ad() assertions in MySQL debug builds. · b7c59b9e
      unknown authored
      
      innobase/include/univ.i:
        InnoDB: Define UNIV_DEBUG when DBUG_ON (in MySQL) is defined.
        This enables InnoDB debug assertions in debug builds of mysqld.
      b7c59b9e
  9. 24 Jan, 2005 1 commit
  10. 22 Jan, 2005 1 commit
    • unknown's avatar
      select_found.result, select_found.test: · 25c2d1ad
      unknown authored
        Added a test case for bug #7945.
      sql_select.cc:
        Fixed bug #7945. If DISTINCT is used only with constants
        in a query with GROUP BY, we can apply an optimization
        that set LIMIT to 1 only in the case when there is 
        no SQL_CALC_FOUND_ROWS.
      
      
      sql/sql_select.cc:
        Fixed bug #7945. If DISTINCT is used only with constants
        in a query with GROUP BY, we can apply an optimization
        that set LIMIT to 1 only in the case when there is 
        no SQL_CALC_FOUND_ROWS.
      mysql-test/t/select_found.test:
        Added a test case for bug #7945.
      mysql-test/r/select_found.result:
        Added a test case for bug #7945.
      25c2d1ad
  11. 20 Jan, 2005 2 commits
  12. 19 Jan, 2005 1 commit
    • unknown's avatar
      BUG#6034 - Error code 124: Wrong medium type. · 353bc070
      unknown authored
      Version for 4.0. Committed for merge.
      If the result table is one of the select tables in INSERT SELECT,
      we must not disable the result tables indexes before selecting.
      mysql_execute_command() detects the match for other reasons and
      adds the flag OPTION_BUFFER_RESULT to the 'select_options'. 
      In this case the result is put into a temporary table first. 
      Hence, we can defer the preparation of the insert
      table until the result is to be used.
      
      
      mysql-test/r/insert_select.result:
        BUG#6034 - Error code 124:  Wrong medium type.
        The test results.
      mysql-test/t/insert_select.test:
        BUG#6034 - Error code 124:  Wrong medium type.
        The test case.
      sql/sql_select.cc:
        BUG#6034 - Error code 124:  Wrong medium type.
        With OPTION_BUFFER_RESULT in the 'select_options',
        defer the preparation of the insert table until the 
        result is to be used. Unfortunately, this happens
        at several places.
      353bc070
  13. 18 Jan, 2005 6 commits
  14. 17 Jan, 2005 1 commit
  15. 15 Jan, 2005 1 commit
  16. 14 Jan, 2005 1 commit
  17. 13 Jan, 2005 1 commit