1. 06 Oct, 2006 1 commit
    • unknown's avatar
      Fix to build on 64-bit systems where sizeof(unsigned long long) · 9f0ad61b
      unknown authored
      > sizeof(unsigned long).
      
      
      sql/log.cc:
        Replacing enum constant that contained an unsigned long long constant
        on some platforms with a macro (an enumeration constant is limited
        to the range of values covered by signed or unsigned long).
      9f0ad61b
  2. 05 Oct, 2006 3 commits
    • unknown's avatar
      Post-merge fixes. · 708d0615
      unknown authored
      708d0615
    • unknown's avatar
      Merge romeo.(none):/home/bkroot/mysql-5.1-new-rpl · 99ed5070
      unknown authored
      into  romeo.(none):/home/bk/b20265-mysql-5.1-new-rpl
      
      
      sql/sql_class.h:
        Auto merged
      sql/log.cc:
        Manual merge
      sql/sql_insert.cc:
        Manual merge
      99ed5070
    • unknown's avatar
      I had forgotten to delete an already disabled line of C++ code. · 89f45796
      unknown authored
      ---
      BUG#20265 (Replication of CREATE-SELECT does not work correctly):
      Fixing bug by making binary log handle statement transactions.
      The binary log transaction cache can now be truncated to remove 
      events inserted during this statement or transaction. Also, the
      binary log participate in XA transaction handling, although not
      as a full 2pc resource.
      
      
      mysql-test/r/binlog_row_mix_innodb_myisam.result:
        Result change
      sql/log.cc:
        Making change to binlog_end_trans() to support that it can be called
        for statement transactions as well.
      sql/sql_class.h:
        Adding function THD::binlog_start_trans_and_stmt() to start a real transaction
        (if necessary) and also a statement transaction.
      sql/sql_insert.cc:
        I had forgotten to delete this line (it was already disabled using //;
        this line was not needed because we do the empty() every time
        we write to the binlog (in MYSQL_LOG::write());
        t/binlog_stm_binlog.test already tests that the empty() indeed happens
        for INSERT DELAYED.
        ---
        Changes to use the statement transactions that the binary log now can handle.
      89f45796
  3. 03 Oct, 2006 5 commits
    • unknown's avatar
    • unknown's avatar
      sql_yacc.yy: · 2a3f65a2
      unknown authored
        After merge fix.
      field.cc:
        After merge fix
      
      
      sql/field.cc:
        After merge fix
      sql/sql_yacc.yy:
        After merge fix.
      2a3f65a2
    • unknown's avatar
      After merge fix · bac017b0
      unknown authored
      
      BitKeeper/deleted/.del-ps_6bdb.result:
        Auto merged
      client/mysql.cc:
        Auto merged
      include/m_ctype.h:
        Auto merged
      mysql-test/r/cast.result:
        Auto merged
      mysql-test/r/ctype_utf8.result:
        Auto merged
      mysql-test/r/ps.result:
        Auto merged
      mysql-test/r/ps_2myisam.result:
        Auto merged
      mysql-test/r/ps_3innodb.result:
        Auto merged
      mysql-test/r/ps_4heap.result:
        Auto merged
      mysql-test/r/ps_5merge.result:
        Auto merged
      mysql-test/r/ps_7ndb.result:
        Auto merged
      mysql-test/t/cast.test:
        Auto merged
      mysql-test/t/ctype_utf8.test:
        Auto merged
      mysql-test/t/strict.test:
        Auto merged
      sql/field_conv.cc:
        Auto merged
      sql/item_func.cc:
        Auto merged
      strings/ctype-big5.c:
        Auto merged
      strings/ctype-bin.c:
        Auto merged
      strings/ctype-cp932.c:
        Auto merged
      strings/ctype-euc_kr.c:
        Auto merged
      strings/ctype-eucjpms.c:
        Auto merged
      strings/ctype-gb2312.c:
        Auto merged
      strings/ctype-gbk.c:
        Auto merged
      strings/ctype-latin1.c:
        Auto merged
      strings/ctype-sjis.c:
        Auto merged
      strings/ctype-tis620.c:
        Auto merged
      strings/ctype-ucs2.c:
        Auto merged
      strings/ctype-ujis.c:
        Auto merged
      strings/ctype-utf8.c:
        Auto merged
      bac017b0
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-4.1-rpl.b8663 · 9207c4d8
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0-rpl
      
      
      mysql-test/r/cast.result:
        null merge for bug#8663
        It will beed another fix for 5.0
        - changes in new DECIMAL instead of FLOAT
      mysql-test/r/ps.result:
        null merge
      mysql-test/t/cast.test:
        null merge
      mysql-test/t/count_distinct3.test:
        null merge
      sql/item_func.cc:
        null merge
      9207c4d8
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-4.1.b8663 · f097517d
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-4.1-rpl
      
      
      mysql-test/r/cast.result:
        Auto merged
      mysql-test/r/ps.result:
        Auto merged
      sql/item_func.cc:
        Auto merged
      f097517d
  4. 02 Oct, 2006 6 commits
  5. 01 Oct, 2006 6 commits
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.1 · a4d34f34
      unknown authored
      into  bk-internal.mysql.com:/data0/bk/mysql-5.1-arch
      
      
      sql/mysql_priv.h:
        Auto merged
      sql/share/errmsg.txt:
        Auto merged
      a4d34f34
    • unknown's avatar
      This patch makes ndbcluster_hton not static. I have a second patch for... · 072a1772
      unknown authored
      This  patch makes ndbcluster_hton not static. I have a second patch for ndbcluster_hton to be static, but I want to talk to Jonas first. 
      
      
      sql/ha_ndbcluster.cc:
        Can't quite make  it static yet :)
      sql/ha_ndbcluster_binlog.h:
        Moving bad extern replacement
      072a1772
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.1-arch · a26cc33a
      unknown authored
      into  zim.(none):/home/brian/mysql/merge-5.1
      
      
      sql/mysql_priv.h:
        Auto merged
      a26cc33a
    • unknown's avatar
      Merge fix. · b86021d1
      unknown authored
      
      sql/sql_cursor.cc:
        Merge bit...
      b86021d1
    • unknown's avatar
      Merge zim.(none):/home/brian/mysql/merge-5.1 · f3c0490e
      unknown authored
      into  zim.(none):/home/brian/mysql/arch-5.1
      
      
      sql/mysql_priv.h:
        Auto merged
      sql/share/errmsg.txt:
        Auto merged
      sql/sql_show.cc:
        Auto merged
      sql/handler.h:
        Merge from G's work
      sql/sql_cursor.cc:
        Merge from G's work
      storage/csv/ha_tina.cc:
        Merge of G's work
      storage/innobase/handler/ha_innodb.cc:
        Merge of G's work
      storage/innobase/handler/ha_innodb.h:
        Merge of G's work
      storage/myisam/ha_myisam.cc:
        Merge of G's work
      f3c0490e
    • unknown's avatar
      This patch updates to remove most global hton needs. Cleans up wrong message in partition. · e5b9d344
      unknown authored
      
      mysql-test/r/partition.result:
        Updated results
      sql/ha_ndbcluster.cc:
        Updated hton
      sql/ha_partition.cc:
        Removed need for global internal hton.
      sql/handler.cc:
        Removed need for global mrg
      sql/mysql_priv.h:
        Updated needs for global variables.
      sql/mysqld.cc:
        Removed needs around hton
      sql/partition_info.cc:
        Removed bug.... aka what happens if tables are neither?
      sql/share/errmsg.txt:
        Made error message more generic.
      sql/sql_cache.cc:
        Removed specific hton reference
      e5b9d344
  6. 30 Sep, 2006 3 commits
    • unknown's avatar
      This patch adds handlerton passing to functions. NDB and Innodb still require... · 3e7d3265
      unknown authored
      This patch adds handlerton passing to functions. NDB and Innodb still require a global hanlderton in the main code due to the nature of the sql_cache call back function (should be solveable... another patch).
      Partitioning now has a flag to allow disabling of engines from being compatible with partitioning. Cleaned up heap naming convention on panic call. 
      
      
      include/heap.h:
        Added new function
      sql/ha_ndbcluster.cc:
        Updated hanlderton functions
      sql/ha_ndbcluster_binlog.cc:
        Updated handlerton functions.
      sql/handler.cc:
        Updated handlerton functions.
      sql/handler.h:
        Updated hanlderton functions
      sql/log.cc:
        Updated handlerton functions
      sql/mysql_priv.h:
        Updated handlerton functions
      sql/mysqld.cc:
        Added Legacy handlerton functions
      sql/partition_info.cc:
        Added flag support for marking engines not compatible with partitioning
      sql/sql_cursor.cc:
        Updated hanlderton functions
      sql/sql_show.cc:
        Updated hanlderton functions
      sql/sql_tablespace.cc:
        Update for handlerton functions
      storage/archive/ha_archive.cc:
        Update for hanlderton functions
      storage/archive/ha_archive.h:
        Update for handlerton functions
      storage/blackhole/ha_blackhole.cc:
        Update for handlerton functions
      storage/csv/ha_tina.cc:
        Update for handlerton functions
      storage/csv/ha_tina.h:
        Update for handlerton functions
      storage/federated/ha_federated.cc:
        Updated for handlerton functions
      storage/federated/ha_federated.h:
        Updated for handlerton functions
      storage/heap/ha_heap.cc:
        Update for handlerton functions
      storage/heap/hp_panic.c:
        Update of function name
      storage/heap/hp_test1.c:
        Update of function name
      storage/heap/hp_test2.c:
        Update of function name.
      storage/innobase/handler/ha_innodb.cc:
        Update of function name
      storage/innobase/handler/ha_innodb.h:
        Update of function name
      storage/myisam/ha_myisam.cc:
        Update of function name.
      storage/myisammrg/ha_myisammrg.cc:
        Update of function name
      3e7d3265
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1 · 13d83102
      unknown authored
      into  dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-5.1-opt
      
      13d83102
    • unknown's avatar
      This removes the passing of global hton to engine instance. · b93473aa
      unknown authored
      
      sql/ha_ndbcluster.cc:
        Removed global hton
      sql/ha_ndbcluster.h:
        Removed global hton need
      sql/ha_partition.cc:
        Removed global hton
      sql/ha_partition.h:
        Removed global hton
      sql/handler.cc:
        Removed global hton
      sql/handler.h:
        Removed global hton
      storage/archive/ha_archive.cc:
        Removed global hton
      storage/archive/ha_archive.h:
        Global hton removed
      storage/blackhole/ha_blackhole.cc:
        Global removed hton
      storage/blackhole/ha_blackhole.h:
        Global hton removal
      storage/csv/ha_tina.cc:
        Global hton removal
      storage/csv/ha_tina.h:
        Removed global removed
      storage/example/ha_example.cc:
        Global removed hton
      storage/example/ha_example.h:
        Global removed hton
      storage/federated/ha_federated.cc:
        Global removed hton
      storage/federated/ha_federated.h:
        Global removed hton
      storage/heap/ha_heap.cc:
        Global removed hton
      storage/heap/ha_heap.h:
        Global removed hton
      storage/innobase/handler/ha_innodb.cc:
        Global removed hton
      storage/innobase/handler/ha_innodb.h:
        Removed global hton
      storage/myisam/ha_myisam.cc:
        Globally removed hton
      storage/myisam/ha_myisam.h:
        Globally removed hton
      storage/myisammrg/ha_myisammrg.cc:
        Globally removed hton
      storage/myisammrg/ha_myisammrg.h:
        Globaly removed hton
      b93473aa
  7. 29 Sep, 2006 12 commits
    • unknown's avatar
      BUG#14940: Update test results · ca2372d7
      unknown authored
      ca2372d7
    • unknown's avatar
      Merge bk-internal.mysql.com:/data0/bk/mysql-5.1 · 8b833dc9
      unknown authored
      into  bk-internal.mysql.com:/data0/bk/mysql-5.1-arch
      
      8b833dc9
    • unknown's avatar
      Merge spetrunia@bk-internal.mysql.com:/home/bk/mysql-5.1-opt · 4fbdc1c3
      unknown authored
      into  mysql.com:/home/psergey/mysql-5.1-bug14940-r10a
      
      
      sql/sql_select.cc:
        Auto merged
      4fbdc1c3
    • unknown's avatar
      Remove empty line · ea930263
      unknown authored
      ea930263
    • unknown's avatar
      merge fixes · edd34f68
      unknown authored
      
      mysql-test/t/view.test:
        moved the new error message last
      sql/share/errmsg.txt:
        moved the new error message last
      edd34f68
    • unknown's avatar
      BUG#14940: Slow join order is chosen: [2nd commit with post-review fixes] · aeafddc5
      unknown authored
      - Re-worked the prev_record_reads() function to return the lower bound of
        number of different table access scans that will be performed.
      
      
      mysql-test/r/join.result:
        BUG#14940: testcase
      mysql-test/t/join.test:
        BUG#14940: testcase
      sql/sql_select.cc:
        BUG#14940: Slow join order is chosen: 
        - Re-worked the prev_record_reads() function to return the lower bound of
          number of different table access scans that will be performed.
      sql/sql_select.h:
        BUG#14940: Slow join order is chosen:
        - Added comments in struct POSITION
        - Added POSITION::ref_depend_map: bitmap of tables that the table access
          method depends on.
      aeafddc5
    • unknown's avatar
      Merge mysql.com:/usr/home/bar/mysql-5.0.b6147v2 · cc56bce6
      unknown authored
      into  mysql.com:/usr/home/bar/mysql-5.0.b6147rpl
      
      
      mysql-test/r/ps_2myisam.result:
        Auto merged
      mysql-test/r/ps_3innodb.result:
        Auto merged
      mysql-test/r/ps_4heap.result:
        Auto merged
      mysql-test/r/ps_5merge.result:
        Auto merged
      mysql-test/r/ps_6bdb.result:
        Auto merged
      mysql-test/r/select.result:
        Auto merged
      mysql-test/r/strict.result:
        Auto merged
      mysql-test/r/view.result:
        Auto merged
      mysql-test/r/warnings.result:
        Auto merged
      mysql-test/t/strict.test:
        Auto merged
      sql/field.cc:
        Auto merged
      cc56bce6
    • unknown's avatar
      Bug#21263 mysql client XML output does not distinguish between NULL and string 'NULL' · 18a2a02b
      unknown authored
        
        Fix: "mysql --xml" now print NULL values the same way that "mysqldump --xml" does:
        
          <field name="name" xsi:nil="true" />
        
        to distinguish from empty strings:
        
          <field name="name"></field>
        
        and from string "NULL":
        
          <field name="name">NULL</field>
      
      
      client/mysql.cc:
        Fixing to print NULLs differently from empty strings
      mysql-test/r/client_xml.result:
        Fixing test result accordingly
      18a2a02b
    • unknown's avatar
      Bug#21620 ALTER TABLE affects other columns · f4f7f5bf
      unknown authored
        Problem: for character sets having mbmaxlen==2,
        any ALTER TABLE changed TEXT column type to MEDIUMTEXT,
        due to wrong "internal length to create length" formula.
        Fix: removing rounding code introduced in early 4.1 time,
        which is not correct anymore.
      
      
      mysql-test/r/ctype_gbk.result:
        Adding test case
      mysql-test/t/ctype_gbk.test:
        Adding test case
      sql/field.cc:
        Fixing "internal length to create length" formula.
      f4f7f5bf
    • unknown's avatar
      Bug#19960 Inconsistent results when joining InnoDB tables using partial UTF8 indexes · 2cbc2e9d
      unknown authored
        Adding a multibyte-aware VARCHAR copying function, to put correct column prefix,
        taking in account number of characters (instead just limiting on number of bytes).
        For example, for a KEY(col(3)) on a UTF8 column when copying the string 'foo bar foo',
        we should put only 3 leftmost characters: 'foo'.
        9 characters were incorrectly put before this fix.
      
      
      mysql-test/r/ctype_utf8.result:
        Adding test case
      mysql-test/t/ctype_utf8.test:
        Adding test case
      sql/field_conv.cc:
        Adding multibyte aware copy function for VARCHAR
      2cbc2e9d
    • unknown's avatar
      Merge dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-5.0-opt · d3612560
      unknown authored
      into  dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-5.1-opt
      
      
      mysql-test/r/view.result:
        Auto merged
      mysql-test/t/view.test:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_insert.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_view.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      d3612560
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.1 · d5ea425a
      unknown authored
      into  dl145s.mysql.com:/data/bk/team_tree_merge/MERGE/mysql-5.1-opt
      
      
      mysql-test/r/view.result:
        Auto merged
      mysql-test/t/view.test:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      d5ea425a
  8. 28 Sep, 2006 4 commits
    • unknown's avatar
      view.test: · 669d8a6f
      unknown authored
        After merge fix
      
      
      mysql-test/t/view.test:
        After merge fix
      669d8a6f
    • unknown's avatar
      Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt · 024f93c5
      unknown authored
      into  moonbone.local:/work/5505-bug-5.0-opt-mysql
      
      
      sql/share/errmsg.txt:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      mysql-test/r/view.result:
        Manual merge
      mysql-test/t/view.test:
        Manual merge
      024f93c5
    • unknown's avatar
      Fixed bug#5505: Wrong error message on INSERT into a view · 9cf17a35
      unknown authored
      On an INSERT into an updatable but non-insertable view an error message was
      issued stating the view being not updatable. This can lead to a confusion of a
      user.
      
      A new error message is introduced. Is is showed when a user tries to insert
      into a non-insertable view.
      
      
      sql/sql_base.cc:
        Fixed bug#5505: Wrong error message on INSERT into a view
        The update_non_unique_table_error() function now issues proper
        error for an INSERT.
      sql/sql_insert.cc:
        Fixed bug#5505: Wrong error message on INSERT into a view
        Issue the ER_NON_INSERTABLE_TABLE error instead of the 
        ER_NON_UPDATABLE_TABLE on insert into a view.
      sql/sql_view.cc:
        Fixed bug#5505: Wrong error message on INSERT into a view
        Issue the ER_NON_INSERTABLE_TABLE error instead of the
        ER_NON_UPDATABLE_TABLE on insert into a view.
      mysql-test/r/view.result:
        Added the test case for bug#5505: Wrong error message on INSERT into a view
        Corrected a few test cases after fixing bug#5505
      mysql-test/t/view.test:
        Added the test case for bug#5505: Wrong error message on INSERT into a view
        Corrected a few test cases after fixing bug#5505
      sql/share/errmsg.txt:
        Fixed bug#5505: Wrong error message on INSERT into a view
        Added the ER_NON_INSERTABLE_TABLE error definition.
      9cf17a35
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.1-arch · e84a740a
      unknown authored
      into  zim.(none):/home/brian/mysql/merge-5.1
      
      
      sql/handler.h:
        Auto merged
      e84a740a