An error occurred fetching the project authors.
  1. 25 Mar, 2005 1 commit
    • gbichot@quadita2.mysql.com's avatar
      WWe now store the catalog in Query_log_event in binlog WITHOUT its end zero. · ead47f47
      gbichot@quadita2.mysql.com authored
      This saves one byte per Query_log_event on disk compared to 5.0.[0..3]. Compatibility problems with 5.0.x where x<4
      are explained in the comments in log_event.cc. Putting back s/my_open(O_TRUNC)/(my_delete+my_create) change which had
      been wiped away by somebody doing a wrong 4.1->5.0 merge (which happened just
      before 5.0.3 :( ). Applying it to new events for LOAD DATA INFILE.
      If slave fails in Execute_load_query_log_event::exec_event(),
      don't delete the file (so that it's re-usable at next START SLAVE).
      And (youpi!) fix for BUG#3247 "a partially completed LOAD DATA INFILE is not
      executed at all on the slave" (storing an Execute_load_query_log_event
      to binlog, with its error code, instead of Delete_file_log_event).
      ead47f47
  2. 21 Mar, 2005 2 commits
  3. 17 Mar, 2005 1 commit
  4. 16 Mar, 2005 4 commits
    • serg@serg.mylan's avatar
      log_event.cc: · f3cf0837
      serg@serg.mylan authored
        #ifdef USING_TRANSACTIONS
      ha_innodb.cc:
        comment
      rpl_drop_temp.test, rpl_drop_temp.result:
        cleanup
      f3cf0837
    • monty@mysql.com's avatar
      Cleanup during reviews · 594ef41b
      monty@mysql.com authored
      Removed some optional arguments
      Fixed portability problem in federated tests
      594ef41b
    • dlenev@brandersnatch.localdomain's avatar
      Fixed behavior of LOAD DATA with subqueries in SET clause. · 3da06a55
      dlenev@brandersnatch.localdomain authored
      The idea is to use TABLE_LIST::lock_type for passing type of lock for
      target table to mysql_load() instead of using LEX::lock_option 
      (which were rewritten by first subselect in SET clause).
      
      This should also fix potential problem with LOAD DATA in SP
      (it is important for them to have right lock_type in the table
       list by the end of statement parsing).
      3da06a55
    • dlenev@brandersnatch.localdomain's avatar
      WL#874 "Extended LOAD DATA". · f1691140
      dlenev@brandersnatch.localdomain authored
      Now one can use user variables as target for data loaded from file
      (besides table's columns). Also LOAD DATA got new SET-clause in which
      one can specify values for table columns as expressions.
      
      For example the following is possible:
      LOAD DATA INFILE 'words.dat' INTO TABLE t1 (a, @b) SET c = @b + 1;
      
      This patch also implements new way of replicating LOAD DATA.
      Now we do it similarly to other queries.
      We store LOAD DATA query in new Execute_load_query event
      (which is last in the sequence of events representing LOAD DATA).
      When we are executing this event we simply rewrite part of query which
      holds name of file (we use name of temporary file) and then execute it
      as usual query. In the beggining of this sequence we use Begin_load_query
      event which is almost identical to Append_file event
      f1691140
  5. 02 Mar, 2005 2 commits
  6. 25 Feb, 2005 1 commit
  7. 23 Feb, 2005 2 commits
    • guilhem@mysql.com's avatar
      log_event.cc: · 66daa0d2
      guilhem@mysql.com authored
        cast sql_mode to ulonglong before int8store, otherwise the implementation of int8store
        based on >> complains that we do 32-bit var >> 32 which is undefined according to C standard.
        (compiler warning appeared on SGI Irix)
      66daa0d2
    • serg@serg.mylan's avatar
      don't log BEGIN in auto-commit mode · 383c6e31
      serg@serg.mylan authored
      correct end_log_pos for Xid_log_event
      383c6e31
  8. 21 Feb, 2005 4 commits
  9. 19 Feb, 2005 1 commit
    • monty@mysql.com's avatar
      Fixed BUILD script to use --with-berkeley-db instead of --with-bdb · 218e00ac
      monty@mysql.com authored
      Lots of small fixes to multi-precision-math path
      Give Note for '123.4e'
      Added helper functions type 'val_string_from_real()
      Don't give warnings for end space for string2decimal()
      Changed storage of values for SP so that we can detect length of argument without strlen()
      Changed interface for str2dec() so that we must supple the pointer to the last character in the buffer
      218e00ac
  10. 17 Feb, 2005 1 commit
  11. 16 Feb, 2005 1 commit
  12. 09 Feb, 2005 1 commit
  13. 08 Feb, 2005 1 commit
  14. 03 Feb, 2005 1 commit
    • guilhem@mysql.com's avatar
      WL#1062 "log charset info into all Query_log_event": · ed1696f6
      guilhem@mysql.com authored
      we store 7 bytes (1 + 2*3) in every Query_log_event.
      In the future if users want binlog optimized for small size and less safe,
      we could add --binlog-no-charset (and binlog-no-sql-mode etc): charset info
      is something by design optional (even if for now we don't offer possibility to disable it):
      it's not a binlog format change.
      We try to reduce the number of get_charset() calls in the slave SQL thread to a minimum
      by caching the charset read from the previous event (which will often be equal to the one of the current event).
      We don't use SET ONE_SHOT for charset-aware repl (we still do for timezones, will be fixed later).
      No more errors if one changes the global value of charset vars on master or slave
      (as we log charset info in all Query_log_event).
      Not fixing Load_log_event as it will be rewritten soon by Dmitri.
      Testing how mysqlbinlog behaves in rpl_charset.test.
      mysqlbinlog needs to know where charset file is (to be able to convert a charset number found
      in binlog (e.g. in User_var_log_event) to a charset name); mysql-test-run needs to pass
      the correct value for this option to mysqlbinlog.
      Many result udpates (adding charset info into every event shifts log_pos in SHOW BINLOG EVENTS).
      Roughly the same job is to be done for timezones :)
      ed1696f6
  15. 27 Jan, 2005 1 commit
  16. 16 Jan, 2005 1 commit
  17. 12 Jan, 2005 1 commit
  18. 06 Jan, 2005 1 commit
    • monty@mysql.com's avatar
      First stage of table definition cache · d35140a8
      monty@mysql.com authored
      Split TABLE to TABLE and TABLE_SHARE (TABLE_SHARE is still allocated as part of table, will be fixed soon)
      Created Field::make_field() and made Field_num::make_field() to call this
      Added 'TABLE_SHARE->db' that points to database name; Changed all usage of table_cache_key as database name to use this instead
      Changed field->table_name to point to pointer to alias. This allows us to change alias for a table by just updating one pointer.
      Renamed TABLE_SHARE->real_name to table_name
      Renamed TABLE->table_name to alias
      Renamed TABLE_LIST->real_name to table_name
      d35140a8
  19. 04 Jan, 2005 1 commit
    • monty@mysql.com's avatar
      After merge fixes · 7cf8285b
      monty@mysql.com authored
      Add support for warnings for prepare of prepared statements
      Fixed test to work with --ps-protocol
      Fixed some test results
      7cf8285b
  20. 31 Dec, 2004 1 commit
  21. 16 Dec, 2004 1 commit
  22. 03 Dec, 2004 2 commits
  23. 18 Nov, 2004 2 commits
  24. 15 Nov, 2004 1 commit
    • lars@mysql.com's avatar
      BUG#6353 V2: · b7cfe5ec
      lars@mysql.com authored
      Replication using replicate-rewrite-db did not work for LOAD DATA INFILE.
      Now is does.  There was one place in the code that used current database 
      instead of the rewrite database.
      b7cfe5ec
  25. 12 Nov, 2004 2 commits
  26. 07 Nov, 2004 1 commit
    • monty@mysql.com's avatar
      Simpler arena swapping code · b903a129
      monty@mysql.com authored
      Now thd->mem_root is a pointer to thd->main_mem_root and THR_MALLOC is a pointer to thd->mem_root.
      This gives us the following benefits:
      - Allow us to easily detect if arena has already been swapped before (this fixes a bug in setup_conds() where arena was swaped twice in some cases)
      - Faster swaps of arenas (as we don't have to copy the whole MEM_ROOT)
      - We don't anymore have to call my_pthread_setspecific_ptr(THR_MALLOC,...) to change where memory is alloced. Now it's enough to set thd->mem_root
      b903a129
  27. 03 Nov, 2004 1 commit
    • monty@mysql.com's avatar
      Fixes after merge with 4.1 · 47bbf768
      monty@mysql.com authored
      FOUND is not a reserved keyword anymore
      Added Item_field::set_no_const_sub() to be able to mark fields that can't be substituted
      Added 'simple_select' method to be able to quickly determinate if a select_result is a normal SELECT
      Note that the 5.0 tree is not yet up to date: Sanja will have to fix multi-update-locks for this merge to be complete
      47bbf768
  28. 21 Oct, 2004 1 commit