1. 29 Mar, 2004 9 commits
  2. 28 Mar, 2004 1 commit
    • unknown's avatar
      Simplification: MYSQL_RES *result replaced with MYSQL_DATA result; · 7e5cd910
      unknown authored
      No need to check for result existence any more, store_result functions
      now are shorter.
      cli_read_binary_rows rewritten to handle MYSQL_DATA directly.
      
      
      include/mysql.h:
        MYSQL_RES * pointer replaced with MYSQL_DATA: it saves us at least 2 mallocs
        per store_result and simplifies stored result handling.
        Plus it's done with cursor fetch in mind: cursor fetch will use this
        structure to buffer fetched rows.
      libmysql/client_settings.h:
        signature of cli_read_binary_rows changed
      libmysql/libmysql.c:
        MYSQL_DATA is now used to handle result.
        cli_read_binary_rows rewritten to use MYSQL_DATA directly.
      libmysql/libmysql.def:
        declarations of new calls in the library
      libmysqld/lib_sql.cc:
        MYSQL_DATA is now used to handle result.
        cli_read_binary_rows rewritten to use MYSQL_DATA directly.
      7e5cd910
  3. 27 Mar, 2004 4 commits
    • unknown's avatar
      Merge abotchkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 76385f32
      unknown authored
      into deer.(none):/home/hf/work/mysql-4.1.clean
      
      
      76385f32
    • unknown's avatar
      Small fix to embedded library · 8b0d52ab
      unknown authored
      we should call check_user in NO_EMBEDDED_ACCESS_CHECKS case
      to do necessary initializations
      
      
      libmysqld/lib_sql.cc:
        call of check_user added
      8b0d52ab
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · a8feb0d6
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1
      
      
      a8feb0d6
    • unknown's avatar
      A previous changeset by me today about SQL_LOG_BIN had the problem · ec4a9dc9
      unknown authored
      that it tested the privilege in ::update() whereas it should be
      in ::check() (see email from Serg, subject
      "Re: bk commit - 4.1 tree (guilhem:1.1706)").
      So I add instead a check_func function to sys_var_thd_bit.
      I do the same addition to sys_var_thd_ulong, to unify handling
      of PSEUDO_THREAD_ID with the one of SQL_LOG_BIN. So class
      sys_var_pseudo_thread_id is not needed anymore, removing it.
      
      
      mysql-test/r/rpl_temporary.result:
        result update
      mysql-test/t/rpl_temporary.test:
        tests after new way of fixing; verify that when second variable
        assignment is refused then first is not done.
      sql/set_var.cc:
        a check_func (check_log_update) when setting SQL_LOG_BIN,
        and one when setting PSEUDO_THREAD_ID.
        Removing class sys_var_pseudo_thread_id.
        Updates for new prototypes of constructor in sys_var_thd_bit
        and sys_var_thd_ulong.
      sql/set_var.h:
        Adding check_func to sys_var_thd_bit.
        Adding check_func to sys_var_thd_ulong, so class sys_var_pseudo_thread_id
        is not needed anymore, removing it.
      ec4a9dc9
  4. 26 Mar, 2004 25 commits
    • unknown's avatar
      some cleanup of last patch for BUG #2342 · 04e879e7
      unknown authored
      
      mysql-test/t/bdb-crash.test:
        added newline
      sql/ha_berkeley.cc:
        added a commet
      04e879e7
    • unknown's avatar
      fixed bug #2342 · 67e4f431
      unknown authored
      "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread"
      
      
      mysql-test/r/bdb-crash.result:
        added test for bug #2342 
        "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread"
      mysql-test/t/bdb-crash.test:
        added test for bug #2342 
        "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread"
      sql/handler.h:
        added constant HA_ADMIN_REJECT
      sql/sql_table.cc:
        added processing of HA_ADMIN_REJECT in ha_berkley::analyze
      67e4f431
    • unknown's avatar
      Merge vvagin@bk-internal.mysql.com:/home/bk/mysql-4.0 · 2e3950b2
      unknown authored
      into eagle.mysql.r18.ru:/home/vva/work/BUG_2342/mysql-4.0
      
      
      2e3950b2
    • unknown's avatar
      fixed bug #2342 · aab1e50e
      unknown authored
      "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread"
      
      1. added new status HA_ADMIN_REJECT and processing of it in mysql_admin_table
      2. got ha_berkley::analyze to return HA_ADMIN_REJECT if there are any 
       transactions with the table.. 
      
      
      mysql-test/r/bdb-crash.result:
        added test for bug #2342 
        "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread"
      mysql-test/t/bdb-crash.test:
        added test for bug #2342 
        "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread"
      sql/ha_berkeley.cc:
        fixed bug #2342 
        "Running ANALYZE TABLE on bdb table inside a transaction hangs server thread"
        
        we have to return new status "HA_ADMIN_REJECT" for ha_berkley::analyze 
        if there are any transaction for this table 
        so as bdb documentation says:
        "The DB->stat method cannot be transaction protected"
      sql/handler.h:
        added new status of table info "HA_ADMIN_REJECT"
        
        We have to return this status for bdb tables which 
        have any active transactions so as bdb-documentation says:
        "The DB->stat method cannot be transaction-protected"
      sql/sql_table.cc:
        added processing of the new status HA_ADMIN_REJECT in mysql_admin_table
        (reason to add this status is explained in comment 
        for commit on sql/handler.h)
      aab1e50e
    • unknown's avatar
      Merge gbichot@213.136.52.20:/home/bk/mysql-4.1 · 266d3619
      unknown authored
      into mysql.com:/home/mysql_src/mysql-4.1
      
      
      mysql-test/r/rpl_temporary.result:
        Auto merged
      mysql-test/t/rpl_temporary.test:
        Auto merged
      sql/set_var.cc:
        Auto merged
      266d3619
    • unknown's avatar
      Changing SET SQL_LOG_BIN so that it explicitely throws an error if · ab8c3d89
      unknown authored
      user is not SUPER, instead of setting the value but ignoring it
      silently internally.
      
      
      mysql-test/r/rpl_temporary.result:
        result update
      mysql-test/t/rpl_temporary.test:
        adding test for privileges for SET SQL_LOG_BIN
      sql/log.cc:
        don't need to check SUPER
      sql/set_var.cc:
        refuse SET SQL_LOG_BIN if not SUPER
      sql/sql_insert.cc:
        Don't need to check SUPER
      ab8c3d89
    • unknown's avatar
      To save 32KB memory per thread when --log-bin is not used, we do not · 11bea84e
      unknown authored
      init the binlog_cache (THD::transaction.trans_log).
      I have checked all places where trans_log is used, because as now
      it may not be inited in some cases, we have to be cautious
      (will forward this commit mail to Heikki).
      
      
      sql/handler.cc:
        Do not use the transaction binlog cache if binlog is not open
      sql/sql_class.cc:
        We do not init the transaction binlog cache if binlog is not open.
        This saves 32 KB memory per thread, if --log-bin is not used.
      sql/sql_class.h:
        warning comment
      11bea84e
    • unknown's avatar
      Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.0 · 10d80288
      unknown authored
      into sinisa.nasamreza.org:/mnt/work/mysql-4.0
      
      
      10d80288
    • unknown's avatar
      Merge heikki@build.mysql.com:/home/bk/mysql-4.0 · 185c68d9
      unknown authored
      into hundin.mysql.fi:/home/heikki/mysql-4.0
      
      
      185c68d9
    • unknown's avatar
      mem0dbg.c: · 08d31b97
      unknown authored
        Backport from 4.1: make mem_current_allocated_memory global variable
      
      
      innobase/mem/mem0dbg.c:
        Backport from 4.1: make mem_current_allocated_memory global variable
      08d31b97
    • unknown's avatar
      mem0dbg.c: · e320ade2
      unknown authored
        Let mem_current_allocated_memory be a global variable, because it is used in an .ic file if UNIV_MEM_DEBUG is defined
      
      
      innobase/mem/mem0dbg.c:
        Let mem_current_allocated_memory be a global variable, because it is used in an .ic file if UNIV_MEM_DEBUG is defined
      e320ade2
    • unknown's avatar
      Merge sinisa@bk-internal.mysql.com:/home/bk/mysql-4.0 · 13e6d008
      unknown authored
      into sinisa.nasamreza.org:/mnt/work/mysql-4.0
      
      
      13e6d008
    • unknown's avatar
      order_by.result: · 9cc75495
      unknown authored
        result of the test case for FORCE INDEX on ORDER BY
      order_by.test:
        test case for FORCE INDEX on ORDER BY
      sql_select.cc:
        Changing behaviour that MySQL server takes FORCE INDEX clause into account when optimising ORDER BY clause
      
      
      sql/sql_select.cc:
        Changing behaviour that MySQL server takes FORCE INDEX clause into account when optimising ORDER BY clause
      mysql-test/t/order_by.test:
        test case for FORCE INDEX on ORDER BY
      mysql-test/r/order_by.result:
        result of the test case for FORCE INDEX on ORDER BY
      9cc75495
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.1 · 4ac3ca69
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-4.1
      
      
      sql/sql_base.cc:
        Auto merged
      4ac3ca69
    • unknown's avatar
      63e1d22f
    • unknown's avatar
      typo in comment fixed · b0979bc9
      unknown authored
      b0979bc9
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-4.0 · 202ea81c
      unknown authored
      into mysql.com:/home/my/mysql-4.0
      
      
      202ea81c
    • unknown's avatar
      Allow keys with 0 segements in MyISAM · cc11f6f3
      unknown authored
      This fixed a bug in SELECT DISTINCT when all selected parts where constants. (Bug #3203)
      
      
      myisam/mi_create.c:
        Allow keys with 0 segements.
      mysql-test/r/myisam.result:
        Test for problem with SELECT DISTINCT
      mysql-test/t/myisam.test:
        Test for problem with SELECT DISTINCT
      cc11f6f3
    • unknown's avatar
      Merge abarkov@bk-internal.mysql.com:/home/bk/mysql-4.1 · 403948cb
      unknown authored
      into bar.intranet.mysql.r18.ru:/usr/home/bar/mysql-4.1
      
      
      403948cb
    • unknown's avatar
      bad merge (?) fixed · 1712fced
      unknown authored
      1712fced
    • unknown's avatar
      1. New data types, from the user point of view: · 3eff4316
      unknown authored
         BINARY(N) and VARBIBARY(N)
      2. More 4.0 compatibility and more BINARY keyword consistency:
      2a. CREATE TABLE a (a CHAR(N) BINARY) 
          is now synonym for
          CREATE TABLE a (a CHAR(N) COLLATE xxxx_bin)
      2b. SELECT BINARY x
          is still synonin for
          SELECT x COLLATE xxxxx_bin.
      
      
      3eff4316
    • unknown's avatar
      version updated after merge :) · c1e76fc0
      unknown authored
      c1e76fc0
    • unknown's avatar
      charset2html.c: · 1d093b7f
      unknown authored
        Don't print control characters
      
      
      mysys/charset2html.c:
        Don't print control characters
      1d093b7f
    • unknown's avatar
      After merge fixes + simple optimizations · 918519ea
      unknown authored
      
      mysql-test/r/alter_table.result:
        Updated results after merge
      mysql-test/r/drop_temp_table.result:
        Updated results after merge
      mysql-test/r/union.result:
        Updated results after merge
      sql/sql_db.cc:
        optimization: Use my_stat() instead of my_dir() to test if directory exists
      sql/sql_union.cc:
        Fixed error in merge
      918519ea
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-4.0 · 8a6ae839
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-qc-4.0
      
      
      8a6ae839
  5. 25 Mar, 2004 1 commit
    • unknown's avatar
      Merge with 4.0 · 526b25e2
      unknown authored
      
      BitKeeper/etc/logging_ok:
        auto-union
      BitKeeper/deleted/.del-libmysql.def~f5dffcb3ed925d28:
        Auto merged
      BitKeeper/deleted/.del-post-incoming~9f2168f531f09f3b:
        Auto merged
      BitKeeper/deleted/.del-post-outgoing~1dd3d8f0f6e8f3cd:
        Auto merged
      VC++Files/innobase/innobase.dsp:
        Auto merged
      VC++Files/strings/MASM6x/strings.dsp:
        Auto merged
      client/mysqldump.c:
        Auto merged
      innobase/sync/sync0sync.c:
        Auto merged
      myisam/mi_check.c:
        Auto merged
      mysql-test/t/union.test:
        Auto merged
      mysql-test/t/update.test:
        Auto merged
      mysys/mf_iocache.c:
        Auto merged
      sql/nt_servc.cc:
        Auto merged
      mysql-test/r/system_mysql_db.result:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      526b25e2