1. 25 Nov, 2004 7 commits
    • unknown's avatar
      Fixed BUG#6807: Stored procedure crash if CREATE PROCEDURE ... KILL QUERY · ddf63bbb
      unknown authored
      ...and for PURGE BEFORE too. (Don't fix_fields in the parser!)
      
      
      mysql-test/r/sp-error.result:
        New test case for BUG#6807
      mysql-test/t/sp-error.test:
        New test case for BUG#6807
      sql/sql_lex.h:
        Purge and kill query args not needed in lex. (Using value_list instead)
      sql/sql_parse.cc:
        Evaluate purge before and kill query args in mysql_execute_command
        instead of in the parser. (Makes it work with stored procedures)
      sql/sql_yacc.yy:
        Don't evaluate (fix_fields) args in the parser for purge before and kill query.
        (Doesn't work with stored procedures)
      ddf63bbb
    • unknown's avatar
      do not leave sql command uninitialized, because it used for detection need of... · bfe57bf8
      unknown authored
      do not leave sql command uninitialized, because it used for detection need of preparation correct idends printing  during finding identifiers i
      
      
      sql/sql_lex.h:
        do not leave sql command uninitialized, because it used for detection need of preparation correct idends printing  during finding identifiers in table list (alias resolving tracking)
      bfe57bf8
    • unknown's avatar
      spelling fixed/comments added (postreview fixes) · d3a09b8c
      unknown authored
      
      sql/mysqld.cc:
        spelling fixed
      sql/sql_base.cc:
        spelling fixed
      sql/sql_delete.cc:
        spelling fixed
      sql/sql_parse.cc:
        comments added
      sql/sql_prepare.cc:
        comments added
      sql/sql_update.cc:
        spelling fixed
      sql/sql_view.cc:
        spelling fixed
      sql/table.cc:
        spelling fixed
      d3a09b8c
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · d827a8c4
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-join-5.0
      
      
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/sp.cc:
        Auto merged
      sql/sql_base.cc:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/sql_parse.cc:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      sql/sql_yacc.yy:
        Auto merged
      sql/table.h:
        Auto merged
      d827a8c4
    • unknown's avatar
      post-merge fix · 04b6bf2c
      unknown authored
      
      mysql-test/r/view.result:
        changes in error number, and key in view processing
      mysql-test/t/view.test:
        changes in error number, and key in view processing
      sql/mysql_priv.h:
        changes functions
      sql/sp.cc:
        now we report to setup_tables(), are we setuping SELECT...INSERT
      sql/sql_base.cc:
        fixed finding table, taking in account join view, which can have not TABLE pointer
        now we report to setup_tables(), are we setuping SELECT...INSERT and ennumerete insert table separately
      sql/sql_delete.cc:
        now we report to setup_tables(), are we setuping SELECT...INSERT
      sql/sql_help.cc:
        now we report to setup_tables(), are we setuping SELECT...INSERT
      sql/sql_insert.cc:
        fixed returning value of functions
      sql/sql_load.cc:
        now we report to setup_tables(), are we setuping SELECT...INSERT
        removed second setup_tables call (merge)
      sql/sql_olap.cc:
        now we report to setup_tables(), are we setuping SELECT...INSERT
      sql/sql_parse.cc:
        UPDATE->MULTIUPDATE switching fixed
      sql/sql_prepare.cc:
        UPDATE->MULTIUPDATE switching fixed
      sql/sql_select.cc:
        now we report to setup_tables(), are we setuping SELECT...INSERT
      sql/sql_update.cc:
        UPDATE->MULTIUPDATE switching fixed
      sql/sql_view.cc:
        returning value fixed
      sql/sql_view.h:
        returning value fixed
      04b6bf2c
    • unknown's avatar
      Merge gbichot@bk-internal.mysql.com:/home/bk/mysql-5.0 · a03cf092
      unknown authored
      into mysql.com:/home/mysql_src/mysql-5.0-clean
      
      a03cf092
    • unknown's avatar
      sql_select.cc: · d1e325c2
      unknown authored
        my_message_sql does not tolerate a NullS argument (segfault)
      
      
      sql/sql_select.cc:
        my_message_sql does not tolerate a NullS argument (segfault)
      d1e325c2
  2. 24 Nov, 2004 33 commits
    • unknown's avatar
      lowercase_table3.result: · ef023fb8
      unknown authored
        Correct InnoDB's result output in test; the pseudo-file-extension for InnoDB tables '.InnoDB' was replaced by a more realistic '.ibd' extension
      
      
      mysql-test/r/lowercase_table3.result:
        Correct InnoDB's result output in test; the pseudo-file-extension for InnoDB tables '.InnoDB' was replaced by a more realistic '.ibd' extension
      ef023fb8
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-5.0 · aa25cfaf
      unknown authored
      into avenger.(none):/export/brian/mysql/merge/5.0
      
      aa25cfaf
    • unknown's avatar
      Merging 4.1 to 5.0 · ad5d5b4b
      unknown authored
      
      Build-tools/Do-compile:
        Auto merged
      client/Makefile.am:
        Auto merged
      client/mysqladmin.cc:
        Auto merged
      configure.in:
        Auto merged
      ndb/src/common/util/version.c:
        Auto merged
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      ndb/src/mgmsrv/main.cpp:
        Resolved NDB conflict between 4.1 and 5.0
      ad5d5b4b
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · 8b451b6a
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-error-5.0
      
      8b451b6a
    • unknown's avatar
      A fix. Why didn't we use UINT_MAX32? · 9a4cb312
      unknown authored
      9a4cb312
    • unknown's avatar
      Merge sanja.is.com.ua:/home/bell/mysql/bk/mysql-5.0 · b927c63d
      unknown authored
      into sanja.is.com.ua:/home/bell/mysql/bk/work-error-5.0
      
      
      sql/item.cc:
        Auto merged
      sql/item.h:
        Auto merged
      sql/sql_lex.cc:
        Auto merged
      sql/sql_lex.h:
        Auto merged
      sql/table.h:
        Auto merged
      b927c63d
    • unknown's avatar
      fixed problem in MacOS · 12ac3d30
      unknown authored
      correct printing of aliases
      
      
      mysql-test/r/lowercase_view.result:
        aliases in VIEWs
      mysql-test/t/lowercase_view.test:
        aliases in VIEWs
      sql/item.cc:
        tracking using aliases in indentifiers
      sql/item.h:
        tracking using aliases in indentifiers
      sql/sql_base.cc:
        tracking using aliases in indentifiers
      sql/sql_lex.cc:
        tracking using aliases in indentifiers
      sql/sql_lex.h:
        tracking using aliases in indentifiers
      sql/table.h:
        tracking using aliases in indentifiers
      12ac3d30
    • unknown's avatar
      configure.in: · a0e87092
      unknown authored
        Fix linking error in 5.0: the build system for Linux/S390 does not have inlining working in the compiler; remove inlining on that system
      
      
      innobase/configure.in:
        Fix linking error in 5.0: the build system for Linux/S390 does not have inlining working in the compiler; remove inlining on that system
      a0e87092
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · d67814fe
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-clean
      
      d67814fe
    • unknown's avatar
      added explanation of error code 4335 · 3a731e7e
      unknown authored
      3a731e7e
    • unknown's avatar
      Merge from 4.0 for immediate use in the current 5.0 builds. · 69d27cb0
      unknown authored
      
      client/mysqladmin.cc:
        Auto merged
      Build-tools/Do-compile:
        Merged the default "--force" for the call to 'mysql-test-run' from 4.0, for immediate use in the current 5.0 builds.
      69d27cb0
    • unknown's avatar
      Fixed bug related to lower case table names on Power Mac · 1987e3f4
      unknown authored
      'information_schema' test is splitted because of innodb  
      
      
      mysql-test/r/information_schema.result:
        Test is splitted because of innodb
      mysql-test/t/information_schema.test:
        Test is splitted because of innodb
      sql/sql_show.cc:
        Fixed bug related to lower case table names on Power Mac
      sql/table.h:
        Fixed bug related to lower case table names on Power Mac
      tests/client_test.c:
        Don't check field length for blob filed
      1987e3f4
    • unknown's avatar
      a1185b75
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1 · de1e5753
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      de1e5753
    • unknown's avatar
      Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1 · 752bb51b
      unknown authored
      into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-clean
      
      752bb51b
    • unknown's avatar
      also backup needs triggers · 05182572
      unknown authored
      05182572
    • unknown's avatar
      calculation of noOfTriggers · 4ecf5536
      unknown authored
      4ecf5536
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-4.1-fix · e95f9d5d
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      
      ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
        Auto merged
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Auto merged
      ndb/src/ndbapi/NdbConnection.cpp:
        Auto merged
      e95f9d5d
    • unknown's avatar
      bug#6775 - ndb · ef5d0be3
      unknown authored
      Queue scan on real fragment.
        Index fragment for range scans
        Table fragment for table scans
      
      
      ndb/src/kernel/blocks/dblqh/Dblqh.hpp:
        Document meaning of fragPtrI and how it differs
          from scanTcRec->fragmentptr
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Queue scan on real fragment.
          Index fragment for range scans
          Table fragment for table scans
      ndb/src/ndbapi/NdbConnection.cpp:
        Check tOp before assigning
      ef5d0be3
    • unknown's avatar
      Merge mysql.com:/M40/mysql-4.0 into mysql.com:/M41/mysql-4.1 · 46d972b7
      unknown authored
      
      client/mysqladmin.cc:
        Auto merged
      46d972b7
    • unknown's avatar
      Ensure consistent sources up to 5.0 where a C++ problem occurs. · 89785675
      unknown authored
      
      client/mysqladmin.c:
        Cast to overcome a C vs. C++ signature problem, occurring in 5.0 where this is a C++ file.
      89785675
    • unknown's avatar
      b347aeac
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1 · 90207c47
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      90207c47
    • unknown's avatar
      Merged 4.0 change into 4.1 · 31627b46
      unknown authored
      
      Build-tools/Do-compile:
        Merged new default "--force" (can be switched off using "--one-error") from 4.0 into 4.1
      31627b46
    • unknown's avatar
      merge error · 6a1442ae
      unknown authored
      6a1442ae
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/wl2077 · 62df203f
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Auto merged
      ndb/src/ndbapi/NdbConnection.cpp:
        Auto merged
      62df203f
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-4.1-fix · 2f035be5
      unknown authored
      into mysql.com:/home/jonas/src/wl2077
      
      2f035be5
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 69d569ea
      unknown authored
      into mysql.com:/home/dlenev/src/mysql-5.0-bg5888
      
      69d569ea
    • unknown's avatar
      ndb - 4.1.8 is not online software upgradable with 4.1.7 (due to close scan optimizations) · 6f07c1bb
      unknown authored
      
      ndb/src/common/util/version.c:
        4.1.8 is not online software upgradable with 4.1.7 (due to close scan optimizations)
      6f07c1bb
    • unknown's avatar
      Merge mysql.com:/home/jonas/src/mysql-4.1-fix · fe5fd881
      unknown authored
      into mysql.com:/home/jonas/src/wl2077
      
      
      ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Auto merged
      fe5fd881
    • unknown's avatar
      A small cleanup in sql_select.h · 5050de0f
      unknown authored
      
      sql/sql_select.h:
        Remove double assingment of fields_list.
      5050de0f
    • unknown's avatar
      uca-dump.c: · 3b0578fe
      unknown authored
        Use less wide spaces on the primary level,
        to avoid big diff for ctype-uca.c.
      
      
      strings/uca-dump.c:
        Use less wide spaces on the primary level,
        to avoid big diff for ctype-uca.c.
      3b0578fe
    • unknown's avatar
      Fix for bug #5888 "Triggers with nonexistent columns cause packets · 245fa6cb
      unknown authored
      out of order". (final version)
      
      Now instead of binding Item_trigger_field to TABLE objects during
      trigger definition parsing at table open, we perform pass through
      special list of all such objects in trigger. This allows easily check
      all references to fields in old/new version of row in trigger during
      execution of CREATE TRIGGER statement (this is more courtesy for users
      since we can't check everything anyway).
      We also report that such reference is bad by returning error from
      Item_trigger_field::fix_fields() method (instead of setup_field())
      This means that if trigger is broken we will bark during trigger
      execution instead of trigger definition parsing at table open.
      (i.e. now we allow to open tables with broken triggers).
      
      
      mysql-test/r/trigger.result:
        Added test which attempts to create trigger for table referencing to
        field which does not exist in this table.
      mysql-test/t/trigger.test:
        Added test which attempts to create trigger for table referencing to
        field which does not exist in this table.
      sql/item.cc:
        Item_trigger_field::setup_field() now returns void. If any error
        will occur we will report it at fix_fields() stage.
      sql/item.h:
        Item_trigger_field:
        - Added next_trg_field member for linking all such objects in trigger
          in one list.
        - Also setup_field() now returns void. If any error will occur we will
          report it at fix_fields() stage.
      sql/mysql_priv.h:
        Added SQL_LIST::push_back() method which allows to add another SQL_LIST
        to the end of this SQL_LIST.
      sql/sp_head.cc:
        sp_head::init()/reset_lex()/restore_lex():
         In order to fill global LEX::trg_table_fields (list of all 
         Item_trigger_field objects for trigger) we should init the same list
         in LEX of substatement before its parsing and merge it to global list
         after parsing.
      sql/sp_head.h:
        sp_instr_trigger_field:
          Made trigger_field member public to be able to add it more easily to
          global list of all Item_trigger_field objects in trigger.
      sql/sql_lex.cc:
        LEX::trg_table was removed.
      sql/sql_lex.h:
        Now we are binding Item_trigger_field's to TABLE object by passing
        through specially constructed list of all such objects in this trigger
        instead of doing this during trigger definition parsing at table open.
        So we no longer need LEX::trg_table, we use LEX::trg_table_fields list
        instead.
      sql/sql_parse.cc:
        mysql_execute_command():
          Since now we use trigger body for some checks in
          mysql_create_or_drop_trigger() we should destroy it only
          after calling this function.
      sql/sql_trigger.cc:
        Now instead of binding Item_trigger_field to TABLE objects during
        trigger definition parsing at table open, we perform pass through
        special list of all such objects in trigger. This allows easily check
        all references to fields in old/new version of row in trigger during
        execution of CREATE TRIGGER statement (this is more courtesy for users
        since we can't check everything anyway).
        We also report that such reference is bad by returning error from
        Item_trigger_field::fix_fields() method (instead of setup_field())
        This means that if trigger is broken we will bark during trigger
        execution instead of trigger definition parsing at table open.
        (i.e. now we allow to open tables with broken triggers).
        
        Table_triggers_list::prepare_old_row_accessors() method was added to be
        able to reuse code creating Field objects referencing TABLE::record[1]
        buffer instead of TABLE::record[0].
      sql/sql_trigger.h:
        Added Table_triggers_list::prepare_old_row_accessors() method to be
        able to reuse code creating Field objects referencing to TABLE::record[1]
        instead of record[0].
      sql/sql_yacc.yy:
        Now instead of performing binding of Item_trigger_field objects
        to TABLE object during trigger definition parsing at table open,
        we perform this binding by passing through specially constructed
        list of all such items in trigger.
        We also check value returned from memory allocation functions.
      245fa6cb