1. 30 Sep, 2004 1 commit
    • unknown's avatar
      Final solution for bug# 4302 "Ambiguos order by when renamed column is · 570923eb
      unknown authored
      identical to another in result"
      According to SQL standard queries like 
      "select t1.a as col from t1, t2 order by a" should return an error if
      both tables contain field a.
      
      
      mysql-test/r/order_by.result:
        Updated test to conform SQL-standard.
      mysql-test/t/order_by.test:
        Updated test to conform SQL-standard.
      sql/item.cc:
        find_item_in_list() has now one more out parameter which is not used
        in item.cc functions.
      sql/mysql_priv.h:
        find_item_in_list(): Added boolean out parameter "unaliased" which
        indicates that we have found field by its original name and not by
        its alias in item (select) list.
      sql/sql_base.cc:
        find_item_in_list(): Added boolean out parameter "unaliased" which
        indicates that we have found field by its original name and not by
        its alias in item (select) list. This means that additional check is
        required to ensure there will be no ambiguity if we would search for this
        field in all tables.
      sql/sql_select.cc:
        find_order_in_list(): If we have found field in select list by its
        original name and not by its alias then we should perform additional
        check to ensure that there will be no ambiguity if we will search for
        this field in all tables. Also small cleanup.
      570923eb
  2. 22 Sep, 2004 1 commit
    • unknown's avatar
      A fix and test case for Bug#5315 "mysql_change_user() doesn't free · 0d44f8d4
      unknown authored
      prepared statements."
      
      
      include/hash.h:
        New declaration for hash_reset() function. The old version was not used.
      libmysql/client_settings.h:
        Declaration for mysql_detach_stmt_list().
      libmysql/libmysql.c:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        add call to mysql_detach_stmt_list(prepared statements) to
        mysql_change_user(): all statements are freed by server, so client
        counterparts need to be marked as not usable.
      mysys/hash.c:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        implementation of hash_reset(), which frees all hash elements
        and prepares the hash for reuse.
      sql-common/client.c:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        implementation of mysql_detach_stmt_list(): zero connection pointer
        in given statement list, thus marking given statements as not usable.
      sql/sql_class.cc:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        reset prepared statements map in THD::change_user().
      sql/sql_class.h:
        Fix for bug#5315 "mysql_change_user() doesn't free prepared statements":
        implementation of Statement_map::reset().
        A little cleanup of ~Statement_map(): first empty names_hash, as st_hash
        has a free function, which will delete statements.
      tests/client_test.c:
        A test case for bug #5315 "mysql_change_user() doesn't free prepared
        statements".
      0d44f8d4
  3. 21 Sep, 2004 6 commits
    • unknown's avatar
      Merge lgrimmer@build.mysql.com:/home/bk/mysql-4.1 · daae7f4a
      unknown authored
      into mysql.com:/space/my/mysql-4.1
      
      daae7f4a
    • unknown's avatar
      bug#5591 · 6d69d56e
      unknown authored
      6d69d56e
    • unknown's avatar
      Merge baker@bk-internal.mysql.com:/home/bk/mysql-4.1 · 616ee34c
      unknown authored
      into private-client-ip-101.oz.net:/Users/brian/mysql/mysql-4.1
      
      
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      616ee34c
    • unknown's avatar
      bug#5617 · 0ab9b32d
      unknown authored
      allow blank lines in Ndb.cfg files
      
      0ab9b32d
    • unknown's avatar
      - Bumped up version number: 4.1.5 -> 4.1.6 (still keeping the "gamma" · e31116d0
      unknown authored
         label for now)
       - tagged ChangeSet 1.2015.1.10 as "mysql-4.1.5"
      
      
      configure.in:
         - Bumped up version number: 4.1.5 -> 4.1.6 (still keeping the "gamma"
           label for now)
      e31116d0
    • unknown's avatar
      The major change for this changeset is the addition of code to handle: · ba1b4bfc
      unknown authored
      OPTIMIZE TABLE <archive table>
      
      This recompresses the table, thus removing any additional gzip headers caused by opening/closing or flushing the table.
      
      
      mysql-test/r/archive.result:
        Added optimize test case for archive engine.
      mysql-test/t/archive.test:
        Added test case for OPTIMIZE table <archive table>
      sql/examples/ha_archive.cc:
        The big change was the addition of optimize() call to allow tables to be recompressed (so if you have been reading/writing/reading/writing and ending up with larger files then you should, this will solve it). Though adding this feature is going to make it a real headache to add row level locking. 
        Also fixed bug reported by JD where storage engine code was not functioning (this of course was because I didn't check for the propper return value for hash_init). Removed BROKEN_GZIP ifdef since there was no way to enable it.
      sql/examples/ha_archive.h:
        Added optimize() method.
      ba1b4bfc
  4. 20 Sep, 2004 9 commits
    • unknown's avatar
      fix updated signature · 6acfa569
      unknown authored
      6acfa569
    • unknown's avatar
      Merge msvensson@build.mysql.com:/home/bk/mysql-4.1 · cd5bd57b
      unknown authored
      into neptunus.(none):/home/magnus/mysql/mysql-4.1
      
      cd5bd57b
    • unknown's avatar
      Merge mleich@bk-internal.mysql.com:/home/bk/mysql-4.1 · 663e06cf
      unknown authored
      into mysql.com:/GORDON/MySQL/mysql-4.1/src
      
      663e06cf
    • unknown's avatar
      These modifications were part of WL#1856 Conversion of client_test.c tests... · 40d6c6e2
      unknown authored
      These modifications were part of WL#1856 Conversion of client_test.c tests cases to mysqltest if possible
      
      They are separated from the other WL#1856 stuff, because they improve the behaviour of the current tests.  
      
      Make the result sets (order of rows) more predictable by using ORDER BY.
      
      
      mysql-test/include/ps_modify.inc:
        Make the result sets more predictable by using ORDER BY
      mysql-test/include/ps_modify1.inc:
        Make the result sets more predictable by using ORDER BY
      mysql-test/r/ps_2myisam.result:
        updated results
      mysql-test/r/ps_3innodb.result:
        updated results
      mysql-test/r/ps_4heap.result:
        updated results
      mysql-test/r/ps_5merge.result:
        updated results
      mysql-test/r/ps_6bdb.result:
        updated results
      BitKeeper/etc/logging_ok:
        Logging to logging@openlogging.org accepted
      40d6c6e2
    • unknown's avatar
      Ues buf pointer in get_ndb_value · a5898694
      unknown authored
      Merge fixes
      
      
      mysql-test/r/ndb_insert.result:
        Correct test cases and result after merge
      mysql-test/t/ndb_insert.test:
        Correct test cases and result after merge
      sql/ha_ndbcluster.cc:
        Correct get_error_message after merge
        Use buf pointer in get_ndb_value
      a5898694
    • unknown's avatar
      bug#5659 · 4e61c525
      unknown authored
      uninit variable
      
      
      ndb/src/kernel/vm/Configuration.cpp:
        init variable
      4e61c525
    • unknown's avatar
      Merge joreland@bk-internal.mysql.com:/home/bk/mysql-4.1 · b55edd48
      unknown authored
      into mysql.com:/home/jonas/src/mysql-4.1
      
      b55edd48
    • unknown's avatar
      Merged new ndb_insert.test and .result · 158063b6
      unknown authored
      
      sql/ha_ndbcluster.cc:
        Auto merged
      sql/ha_ndbcluster.h:
        Auto merged
      mysql-test/r/ndb_insert.result:
        Merge new test cases
      mysql-test/t/ndb_insert.test:
        Merge new test cases
      158063b6
    • unknown's avatar
      Merge msvensson@build.mysql.com:/home/bk/mysql-4.1 · ce28a99c
      unknown authored
      into neptunus.(none):/home/magnus/mysql/mysql-4.1
      
      ce28a99c
  5. 17 Sep, 2004 1 commit
    • unknown's avatar
      A fix and test case for bug#5510 "inserting Null in AutoIncrement primary · 4148c9f9
      unknown authored
      key Column Fails".
      
      
      mysql-test/r/ps.result:
        Test results updated: a test case for Bug#5510 "inserting Null in 
        AutoIncrement primary key Column Fails".
      mysql-test/r/ps_2myisam.result:
        Bug#5510: a different warning in case of NULL->default truncation.This is 
        OK, the new warning is the same as produced by conventional execution.
      mysql-test/r/ps_3innodb.result:
        Bug#5510: a different warning in case of NULL->default truncation.This is 
        OK, the new warning is the same as produced by conventional execution.
      mysql-test/r/ps_4heap.result:
        Bug#5510: a different warning in case of NULL->default truncation.This is 
        OK, the new warning is the same as produced by conventional execution.
      mysql-test/r/ps_5merge.result:
        Bug#5510: a different warning in case of NULL->default truncation.This is 
        OK, the new warning is the same as produced by conventional execution.
      mysql-test/r/ps_6bdb.result:
        Bug#5510: a different warning in case of NULL->default truncation.This is 
        OK, the new warning is the same as produced by conventional execution.
      mysql-test/t/ps.test:
        A test case for Bug#5510 "inserting Null in AutoIncrement primary key Column 
        Fails".
      sql/item.cc:
        A fix for bug#5510 "inserting Null in AutoIncrement primary key Column 
        Fails": use proper Field API function for NULL placholeders.
      4148c9f9
  6. 16 Sep, 2004 21 commits
  7. 15 Sep, 2004 1 commit
    • unknown's avatar
      Merge mskold@build.mysql.com:/home/bk/mysql-4.1 · f44054a5
      unknown authored
      into mysql.com:/usr/local/home/marty/MySQL/test/mysql-4.1
      
      
      ndb/src/common/transporter/TransporterRegistry.cpp:
        Auto merged
      ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Auto merged
      f44054a5