1. 07 Dec, 2006 1 commit
    • unknown's avatar
      merging · e5168acb
      unknown authored
      mysql-test/r/gis.result:
        result fixed
      sql/field.cc:
        Field_*::reset() now returns int
      sql/sql_load.cc:
        merging fix
      e5168acb
  2. 06 Dec, 2006 1 commit
    • unknown's avatar
      bug #22372 (LOAD DATA crashes the table with the geometry field) · ea7d3db0
      unknown authored
      The problem is that the GEOMETRY NOT NULL can't automatically set
      any value as a default one. We always tried to complete LOAD DATA
      command even if there's not enough data in file. That doesn't work
      for GEOMETRY NOT NULL. Now Field_*::reset() returns an error sign
      and it's checked in mysql_load()
      
      
      mysql-test/r/gis.result:
        test result
      mysql-test/t/gis.test:
        testcase
      sql/field.cc:
        reset() now returns error sign
      sql/field.h:
        Field_*::reset() now returns error sign if the field can't be reset
      sql/sql_load.cc:
        check if field can't be reset and return error if it's so
      ea7d3db0
  3. 04 Dec, 2006 1 commit
    • unknown's avatar
      item_func.cc: · 050d9de6
      unknown authored
         fixed a valgrind warning
      type_varchar.test:
        fixed a valgrind warning
      
      
      mysql-test/t/type_varchar.test:
        fixed a valgrind warning
      sql/item_func.cc:
         fixed a valgrind warning
      050d9de6
  4. 03 Dec, 2006 1 commit
    • unknown's avatar
      bug #20835 (Subqueries: literal string with =any fails) · 1e5dccd9
      unknown authored
      We create Item_cache_* object for each operand for each left operand of
      a subquery predicate. We also create Item_func_conv_charset for each string
      constant that needs charset conversion. So here we have Item_cache wrapped
      into Item_func_conv_charset.
      When Item_func_conv_charset wraps an constant Item it gets it's value
      in constructor. The problem is that Item_cache is ready to be used only
      at execution time, which is too late.
      The fix makes Item_cache wrapping constant to get ready at fix_fields() time.
      
      
      mysql-test/r/subselect.result:
        test result
      mysql-test/t/subselect.test:
        test case
      sql/item_cmpfunc.cc:
        now Item_optimizer::fix_left will store constant arguments in cache
        on fix_fields() stage
      1e5dccd9
  5. 01 Dec, 2006 1 commit
  6. 30 Nov, 2006 12 commits
    • unknown's avatar
      bug#18487 UPDATE IGNORE not supported for unique constraint violation of... · 70c70c15
      unknown authored
      bug#18487  UPDATE IGNORE not supported for unique constraint violation of non-primary key: only check pk if it is updated
      
      
      70c70c15
    • unknown's avatar
      bug#18487 UPDATE IGNORE not supported for unique constraint violation of... · 0d6db38f
      unknown authored
      bug#18487  UPDATE IGNORE not supported for unique constraint violation of non-primary key: only check pk if it is updated
      
      
      0d6db38f
    • unknown's avatar
      After merge fixes · 4294bb89
      unknown authored
      Marked some functions as noreturn
      
      
      sql/mysql_priv.h:
        Marked some functions as noreturn
      storage/federated/ha_federated.cc:
        After merge fix
      storage/myisam/ft_boolean_search.c:
        Removed duplicate code
      storage/myisam/myisamchk.c:
        Added LINT_INIT()
      storage/myisam/myisampack.c:
        After merge fix
      storage/myisam/sort.c:
        Indentation fixup
      4294bb89
    • unknown's avatar
      Don't abort if we call my_thread_end() multiple times · 346557a9
      unknown authored
      Fixed new introduced bug in my_time.c
      
      
      BitKeeper/deleted/.del-valgrind.supp.orig:
        Delete: mysql-test/valgrind.supp.orig
      mysys/my_thr_init.c:
        More comments
        Don't abort if we call my_thread_end() multiple times
      sql-common/my_time.c:
        Fixed wrong patch in last commit
      sql/sql_cache.cc:
        Fixed old bad merge (not critical)
      sql/tztime.cc:
        Portability fix
      346557a9
    • unknown's avatar
      Fixed compiler warnings · ece6b7e1
      unknown authored
      Don't assert if my_thread_end() is called twice (common case)
      
      
      client/mysql.cc:
        Removed not used variables
      client/mysqldump.c:
        Fixed compiler warnings
      client/mysqltest.c:
        Fixed compiler warnings
      cmd-line-utils/readline/bind.c:
        Fixed compiler warnings
      cmd-line-utils/readline/histfile.c:
        Fixed compiler warnings
      extra/replace.c:
        Fixed compiler warning on windows
      extra/yassl/taocrypt/include/algebra.hpp:
        Fixed compiler warnings
      heap/hp_write.c:
        Fixed compiler warnings
      innobase/os/os0file.c:
        Fixed compiler warnings
      libmysql/libmysql.c:
        Call my_end()/my_thread_end last.
        my_end() calls free_charsets(), which allowed me to move the call
      myisam/myisampack.c:
        Fixed compiler warnings
      myisammrg/myrg_rkey.c:
        Fixed compiler warnings
      mysys/my_thr_init.c:
        More comments
        Don't assert if my_thread_end() is called twice (common case)
      ndb/src/mgmapi/mgmapi.cpp:
        Fixed compiler warnings
      ndb/src/ndbapi/Ndb.cpp:
        Fixed compiler warnings
      ndb/src/ndbapi/NdbScanOperation.cpp:
        Fixed compiler warnings
      ndb/src/ndbapi/NdbTransaction.cpp:
        Fixed compiler warnings
      ndb/src/ndbapi/Ndblist.cpp:
        Fixed compiler warnings
      server-tools/instance-manager/guardian.cc:
        Removed not used variable
      server-tools/instance-manager/portability.h:
        Removed duplicated symbol
      sql/gen_lex_hash.cc:
        Fixed compiler warning
      sql/ha_archive.cc:
        Fixed compiler warnings
      sql/ha_ndbcluster.cc:
        Fixed compiler warnings
      sql/mysqld.cc:
        Fixed compiler warnings
      sql/sql_cache.cc:
        Fixed compiler warnings
        Fixed DBUG_PRINT strings to be consistent with 5.1
      sql/tztime.cc:
        Fixed compiler warnings
      sql/uniques.cc:
        Fixed compiler warnings
      ece6b7e1
    • unknown's avatar
      Bug #24487 Valgrind: uninited byte in table->record[1] in binlog code for rbr + inno db · e11d8d5a
      unknown authored
      The reason of this valgrind's compaint is not a bug but rather a feature of bitwise ops:
      for any value of the byte x
      x | 1 -> 1,  and x & 0 -> 0.
      x, being a null_byte part of record[1] can be left unassigned even after
      ha_innobase::index_read_idx because the above and still be correct.
      Addding a check memory upon the invocation of the function can detect this fact
      long before record[1], old record, is eventually passed to my_write.
      
      Fixed with initialization of record[1]'s null_bytes part in open_table_from_share.
      
      
      sql/table.cc:
        initialization of null-bytes for valgrind.
      e11d8d5a
    • unknown's avatar
      Fixed portability issue in my_thr_init.c (was added in my last push) · 47cca173
      unknown authored
      Fixed compiler warnings (detected by VC++):
      - Removed not used variables
      - Added casts
      - Fixed wrong assignments to bool
      - Fixed wrong calls with bool arguments
      - Added missing argument to store(longlong), which caused wrong store method to be called.
      
      
      
      client/mysqldump.c:
        Removed compiler warning
      heap/hp_clear.c:
        Removed compiler warning
      include/my_global.h:
        Removed compiler warning
      include/my_tree.h:
        Changed memory limits from int to ulong
        (Allowed me to get rid of some compiler warnings)
      myisam/mi_create.c:
        Removed compiler warning
      myisam/myisampack.c:
        Removed compiler warning
      mysys/base64.c:
        Removed compiler warning
      mysys/my_thr_init.c:
        Fixed portability issue (detected on windows)
        Added DBUG_ASSERT to detect if we call my_thread_end() too many times
        Don't wait if THR_thread_count == -1 (error condition)
      mysys/tree.c:
        Removed compiler warning
      sql/field.cc:
        Removed compiler warning
        Fixed wrong parameter to check_date()
        Added missing argument to store(longlong)
      sql/ha_archive.cc:
        Removed compiler warning
      sql/ha_federated.cc:
        Removed compiler warning
      sql/ha_innodb.cc:
        Removed not used variable
      sql/handler.cc:
        Removed not used variable
        Fixed wrong if (we didn't detect if rollback or commit failed). Not critical as value is not yet used
      sql/item.cc:
        Removed compiler warning
      sql/item_func.cc:
        Removed compiler warning
      sql/item_strfunc.cc:
        Removed compiler warning
      sql/item_timefunc.cc:
        Removed compiler warning
      sql/log.cc:
        Removed compiler warning
      sql/mysql_priv.h:
        Removed compiler warning
      sql/opt_range.cc:
        Removed compiler warning
      sql/password.c:
        Removed compiler warning
      sql/set_var.cc:
        Removed compiler warning
      sql/slave.cc:
        Removed compiler warning
      sql/sp.cc:
        Removed compiler warning
      sql/sp_cache.cc:
        Removed compiler warning
      sql/sp_head.cc:
        Removed compiler warning
        Adjusted argument to reserve() to not use up too much memory that we are probably not going to need
      sql/sql_acl.cc:
        Added missing argument to store(longlong)
      sql/sql_base.cc:
        Removed compiler warning
      sql/sql_db.cc:
        Removed compiler warning
      sql/sql_delete.cc:
        Removed compiler warning
      sql/sql_handler.cc:
        Removed not used variable
      sql/sql_lex.h:
        Removed not used variable
      sql/sql_prepare.cc:
        Removed not used variable
      sql/sql_rename.cc:
        Removed not used variable
      sql/sql_select.cc:
        Fixed that select_options are not 'cut'
        Removed some not used variables
        Removed compiler warnings by adding cast
      sql/sql_show.cc:
        Removed not used variables
        Added missing argument to store(longlong)
        Removed compiler warnings
      sql/sql_trigger.cc:
        Removed not used variables
        Added cast to remove compiler warnings
      sql/sql_update.cc:
        Fixed wrong set of bool variable
      sql/sql_view.cc:
        Removed not used variables
        Added cast to get rid of compiler warnings
      sql-common/client.c:
        Fixed compiler warning
      sql-common/my_time.c:
        Fixed wrong argument to check_date()
        Added casts to get rid of compiler warnings
      sql/sql_yacc.yy:
        Removed not used variable
      sql/uniques.cc:
        Changes memory size from uint to ulong
        Added casts to get rid of compiler warnings
      strings/ctype-simple.c:
        Fixed cast to get rid of compiler warnings
      47cca173
    • unknown's avatar
      bug#18487 UPDATE IGNORE not supported for unique constraint violation of... · 7c44ec9e
      unknown authored
      bug#18487  UPDATE IGNORE not supported for unique constraint violation of non-primary key: handle INSERT ... ON DUPLICATE KEY UPDATE
      
      
      7c44ec9e
    • unknown's avatar
      bug#24303 Wrong result for UPDATE IGNORE for NDB table: bug fix reverted, fix... · 73014a29
      unknown authored
      bug#24303  Wrong result for UPDATE IGNORE for NDB table: bug fix reverted, fix for bug#18487  UPDATE IGNORE not supported for unique constraint violation of non-primary key, solves it a better way
      
      
      73014a29
    • unknown's avatar
      #18487 UPDATE IGNORE not supported for unique constraint violation of... · d4efa758
      unknown authored
      #18487  UPDATE IGNORE not supported for unique constraint violation of non-primary key: call peek_index_rows
      
      
      d4efa758
    • unknown's avatar
      Fixed compiler warnings (Mostly VC++): · d2e04479
      unknown authored
      - Removed not used variables
      - Changed some ulong parameters/variables to ulonglong (possible serious bug)
      - Added casts to get rid of safe assignment from longlong to long (and similar)
      - Added casts to function parameters
      - Fixed signed/unsigned compares
      - Added some constructores to structures
      - Removed some not portable constructs
      
      Better fix for bug Bug #21428 "skipped 9 bytes from file: socket (3)" on "mysqladmin shutdown"
      (Added new parameter to net_clear() to define when we want the communication buffer to be emptied)
      
      
      client/mysql.cc:
        Removed not used variable
      client/mysqldump.c:
        Fixed compiler warning
      client/mysqlslap.c:
        Fixed compiler warning
      client/mysqltest.c:
        Fixed compiler warning
      extra/replace.c:
        Fixed compiler warning
      include/my_global.h:
        Fixed compiler warning
      include/mysql_com.h:
        Changed prototype for net_clear()
      libmysql/libmysql.c:
        Changed prototype for net_clear()
      mysys/base64.c:
        Fixed compiler warning (function definition and prototype didn't match)
      mysys/my_thr_init.c:
        AFter merge fixes
      mysys/my_vle.c:
        Fixed compiler warning
      sql/event_data_objects.cc:
        Fixed compiler warning
      sql/event_scheduler.cc:
        Removed not used variable
      sql/field.cc:
        Removed not used variables
        Fixed compiler warning
      sql/gen_lex_hash.cc:
        Fixed compiler warning
      sql/ha_partition.h:
        Fixed compiler warning
      sql/handler.cc:
        Fixed compiler warning
      sql/item.cc:
        Fixed compiler warning
      sql/item_create.cc:
        Fixed compiler warning
      sql/item_func.cc:
        Fixed compiler warning
      sql/item_strfunc.cc:
        Fixed compiler warning
      sql/item_timefunc.cc:
        Fixed compiler warning
      sql/item_xmlfunc.cc:
        Fixed compiler warning
      sql/log.cc:
        Fixed compiler warning
      sql/log_event.cc:
        Fixed compiler warning
      sql/log_event.h:
        Fixed compiler warning
      sql/mysql_priv.h:
        Fixed too short 'select_type'
      sql/net_serv.cc:
        Added argument to net_clear() if we should empty the communication buffer.
      sql/opt_range.cc:
        Fixed compiler warning
      sql/partition_info.cc:
        Fixed compiler warning
      sql/rpl_injector.h:
        Fixed compiler warning
      sql/set_var.cc:
        Fixed compiler warning
      sql/slave.cc:
        Fixed compiler warning
      sql/sp_head.cc:
        Fixed compiler warning
      sql/sql_base.cc:
        Fixed compiler warning
      sql/sql_db.cc:
        Fixed compiler warning
      sql/sql_delete.cc:
        Fixed compiler warning
      sql/sql_insert.cc:
        Fixed compiler warning
      sql/sql_lex.h:
        Fixed compiler warning
      sql/sql_parse.cc:
        Fixed compiler warning
      sql/sql_partition.cc:
        Fixed compiler warning
      sql/sql_plugin.cc:
        Fixed compiler warning
      sql/sql_prepare.cc:
        Fixed compiler warning
      sql/sql_rename.cc:
        Fixed compiler warning
      sql/sql_select.cc:
        Fixed compiler warning
      sql/sql_show.cc:
        Fixed compiler warning
      sql/sql_table.cc:
        Fixed compiler warning
      sql/sql_trigger.cc:
        Fixed compiler warning
      sql-common/client.c:
        Better fix for bug Bug #21428 "skipped 9 bytes from file: socket (3)" on "mysqladmin shutdown"
      sql-common/my_time.c:
        Fixed compiler warning
      sql/sql_union.cc:
        Fixed compiler warning
      sql/sql_update.cc:
        Fixed compiler warning
      sql/sql_view.cc:
        Fixed compiler warning
      sql/sql_yacc.yy:
        Fixed compiler warning
      sql/table.cc:
        Fixed compiler warning
      storage/archive/azio.c:
        Fixed compiler warning
      storage/csv/ha_tina.cc:
        Removed not used code
      storage/myisam/mi_unique.c:
        Fixed compiler warning
      storage/ndb/include/util/OutputStream.hpp:
        Fixed compiler warning
      storage/ndb/include/util/SocketAuthenticator.hpp:
        Fixed compiler warning
      storage/ndb/src/kernel/vm/Pool.hpp:
        Fixed compiler warning
      strings/ctype-simple.c:
        Fixed compiler warning
      strings/my_strchr.c:
        Fixed compiler warning
      d2e04479
    • unknown's avatar
      A post-merge fix: fix the failing trigger-grant.test. · 2002e4bc
      unknown authored
      sql/sql_trigger.cc:
        Another post-merge fix: make TRIGGER privilege work again, after
        IF EXISTS refactoring.
      2002e4bc
  7. 29 Nov, 2006 5 commits
    • unknown's avatar
      Added back sql-bench directory, so that one can more easily run benchmarks on... · 5d2412b0
      unknown authored
      Added back sql-bench directory, so that one can more easily run benchmarks on a server and add new benchmarks for new optimizations
      Fixed memory leak in _db_set() (Bug#24497 Valgrind warning: get_one_option)
      Don't call net_clear() on COM_QUIT. This avoids a warning from net_clear() after shutdown: "skipped ## bytes from file"
      BUG#21428: skipped 9 bytes from file: socket (3)" on "mysqladmin shutdown"
      
      
      sql-bench/test-wisconsin.sh:
        Rename: BitKeeper/deleted/.del-test-wisconsin.sh~c0b86821b5f95f26 -> sql-bench/test-wisconsin.sh
      sql-bench/test-transactions.sh:
        Rename: BitKeeper/deleted/.del-test-transactions.sh~c1c892f10c40caf -> sql-bench/test-transactions.sh
      sql-bench/test-insert.sh:
        Rename: BitKeeper/deleted/.del-test-insert.sh~893bfac9dedb79a7 -> sql-bench/test-insert.sh
      sql-bench/test-select.sh:
        Rename: BitKeeper/deleted/.del-test-select.sh~6d5cc770acf11be6 -> sql-bench/test-select.sh
      sql-bench/test-create.sh:
        Rename: BitKeeper/deleted/.del-test-create.sh~f9a1ea38c191b17a -> sql-bench/test-create.sh
      sql-bench/test-big-tables.sh:
        Rename: BitKeeper/deleted/.del-test-big-tables.sh~5b1b0c5fb623565a -> sql-bench/test-big-tables.sh
      sql-bench/test-connect.sh:
        Rename: BitKeeper/deleted/.del-test-connect.sh~382a728c949ee075 -> sql-bench/test-connect.sh
      sql-bench/test-ATIS.sh:
        Rename: BitKeeper/deleted/.del-test-ATIS.sh~e8ebff7086c95773 -> sql-bench/test-ATIS.sh
      sql-bench/test-alter-table.sh:
        Rename: BitKeeper/deleted/.del-test-alter-table.sh~eba6cfa9972fcced -> sql-bench/test-alter-table.sh
      sql-bench/innotest2b.sh:
        Rename: BitKeeper/deleted/.del-innotest2b.sh~7b99ece835e8dff3 -> sql-bench/innotest2b.sh
      sql-bench/run-all-tests.sh:
        Rename: BitKeeper/deleted/.del-run-all-tests.sh~41d6da1cf211ee95 -> sql-bench/run-all-tests.sh
      sql-bench/innotest2.sh:
        Rename: BitKeeper/deleted/.del-innotest2.sh~9c14df528285603 -> sql-bench/innotest2.sh
      sql-bench/innotest2a.sh:
        Rename: BitKeeper/deleted/.del-innotest2a.sh~e01d016a7cafdc0b -> sql-bench/innotest2a.sh
      sql-bench/innotest1a.sh:
        Rename: BitKeeper/deleted/.del-innotest1a.sh~c64f4610ae1e26fe -> sql-bench/innotest1a.sh
      sql-bench/innotest1b.sh:
        Rename: BitKeeper/deleted/.del-innotest1b.sh~aafd0819ae84da7b -> sql-bench/innotest1b.sh
      sql-bench/innotest1.sh:
        Rename: BitKeeper/deleted/.del-innotest1.sh~aa36bce09ca783c7 -> sql-bench/innotest1.sh
      sql-bench/crash-me.sh:
        Rename: BitKeeper/deleted/.del-crash-me.sh~2fa881d0b40339c8 -> sql-bench/crash-me.sh
      sql-bench/graph-compare-results.sh:
        Rename: BitKeeper/deleted/.del-graph-compare-results.sh~7e4e28b3591b4542 -> sql-bench/graph-compare-results.sh
      sql-bench/copy-db.sh:
        Rename: BitKeeper/deleted/.del-copy-db.sh~e8116afb93144ccd -> sql-bench/copy-db.sh
      sql-bench/compare-results.sh:
        Rename: BitKeeper/deleted/.del-compare-results.sh~a9e26e2644c694b3 -> sql-bench/compare-results.sh
      sql-bench/bench-count-distinct.sh:
        Rename: BitKeeper/deleted/.del-bench-count-distinct.sh~a92f174271a831d7 -> sql-bench/bench-count-distinct.sh
      sql-bench/as3ap.sh:
        Rename: BitKeeper/deleted/.del-as3ap.sh~f54eebbd8d34c9b6 -> sql-bench/as3ap.sh
      sql-bench/Comments/Informix.crash-me:
        Rename: BitKeeper/deleted/.del-Informix.crash-me~51ab5b717cefe74 -> sql-bench/Comments/Informix.crash-me
      sql-bench/Comments/postgres.crash-me:
        Rename: BitKeeper/deleted/.del-postgres.crash-me~eacac145c3e30f17 -> sql-bench/Comments/postgres.crash-me
      sql-bench/Comments/Empress.crash-me:
        Rename: BitKeeper/deleted/.del-Empress.crash-me~bdaff0c68ce10f02 -> sql-bench/Comments/Empress.crash-me
      sql-bench/Comments/Adabas.crash-me:
        Rename: BitKeeper/deleted/.del-Adabas.crash-me~ce88ba1a540971ac -> sql-bench/Comments/Adabas.crash-me
      sql-bench/Comments/Access.crash-me:
        Rename: BitKeeper/deleted/.del-Access.crash-me~bb457ec282d939b6 -> sql-bench/Comments/Access.crash-me
      sql-bench/Comments/postgres.benchmark:
        Rename: BitKeeper/deleted/.del-postgres.benchmark~4d30890732b784a -> sql-bench/Comments/postgres.benchmark
      sql-bench/Comments/mysql.benchmark:
        Rename: BitKeeper/deleted/.del-mysql.benchmark~4d8729c0937456fc -> sql-bench/Comments/mysql.benchmark
      sql-bench/Comments/FrontBase.benchmark:
        Rename: BitKeeper/deleted/.del-FrontBase.benchmark~217041ef18274c2e -> sql-bench/Comments/FrontBase.benchmark
      sql-bench/Comments/interbase:
        Rename: BitKeeper/deleted/.del-interbase~cdad59622b4d6f3 -> sql-bench/Comments/interbase
      sql-bench/uname.bat:
        Rename: BitKeeper/deleted/.del-uname.bat~a6d933d2ee9314c -> sql-bench/uname.bat
      sql-bench/pwd.bat:
        Rename: BitKeeper/deleted/.del-pwd.bat~9b64050849abf51 -> sql-bench/pwd.bat
      sql-bench/example.bat:
        Rename: BitKeeper/deleted/.del-example.bat~22d0170bccf0f030 -> sql-bench/example.bat
      sql-bench/Makefile.am:
        Rename: BitKeeper/deleted/.del-Makefile.am~7b07da85b2e9375 -> sql-bench/Makefile.am
      sql-bench/Data/ATIS/transport.txt:
        Rename: BitKeeper/deleted/.del-transport.txt~fa4ca40735f8354c -> sql-bench/Data/ATIS/transport.txt
      sql-bench/Data/ATIS/time_zone.txt:
        Rename: BitKeeper/deleted/.del-time_zone.txt~4171f9ca732f65c0 -> sql-bench/Data/ATIS/time_zone.txt
      sql-bench/Data/Wisconsin/tenk.data:
        Rename: BitKeeper/deleted/.del-tenk.data~6aeaebdd534e458e -> sql-bench/Data/Wisconsin/tenk.data
      sql-bench/Data/Wisconsin/onek.data:
        Rename: BitKeeper/deleted/.del-onek.data~6cd1edaf596a7f7 -> sql-bench/Data/Wisconsin/onek.data
      sql-bench/Data/ATIS/stop1.txt:
        Rename: BitKeeper/deleted/.del-stop1.txt~f09ba164ad44a288 -> sql-bench/Data/ATIS/stop1.txt
      sql-bench/Data/ATIS/time_interval.txt:
        Rename: BitKeeper/deleted/.del-time_interval.txt~a1def62e267a59b2 -> sql-bench/Data/ATIS/time_interval.txt
      sql-bench/Data/ATIS/stop.txt:
        Rename: BitKeeper/deleted/.del-stop.txt~31fb564e1f415e34 -> sql-bench/Data/ATIS/stop.txt
      sql-bench/Data/ATIS/restriction.txt:
        Rename: BitKeeper/deleted/.del-restriction.txt~6ae208924617784a -> sql-bench/Data/ATIS/restriction.txt
      sql-bench/Data/ATIS/state.txt:
        Rename: BitKeeper/deleted/.del-state.txt~9dd470ce14075b90 -> sql-bench/Data/ATIS/state.txt
      sql-bench/Data/ATIS/restrict_class.txt:
        Rename: BitKeeper/deleted/.del-restrict_class.txt~2f741bf0ea498f84 -> sql-bench/Data/ATIS/restrict_class.txt
      sql-bench/Data/ATIS/month_name.txt:
        Rename: BitKeeper/deleted/.del-month_name.txt~4c44f7a323d57d92 -> sql-bench/Data/ATIS/month_name.txt
      sql-bench/Data/ATIS/restrict_carrier.txt:
        Rename: BitKeeper/deleted/.del-restrict_carrier.txt~925b5492f3f9cba3 -> sql-bench/Data/ATIS/restrict_carrier.txt
      sql-bench/Data/ATIS/ground_service.txt:
        Rename: BitKeeper/deleted/.del-ground_service.txt~1087e477e86e84c -> sql-bench/Data/ATIS/ground_service.txt
      sql-bench/Data/ATIS/food_service.txt:
        Rename: BitKeeper/deleted/.del-food_service.txt~66d95a150c28458 -> sql-bench/Data/ATIS/food_service.txt
      sql-bench/Data/ATIS/flight_day.txt:
        Rename: BitKeeper/deleted/.del-flight_day.txt~76868d6d265d441e -> sql-bench/Data/ATIS/flight_day.txt
      sql-bench/Data/ATIS/flight_fare.txt:
        Rename: BitKeeper/deleted/.del-flight_fare.txt~d7322593c8530487 -> sql-bench/Data/ATIS/flight_fare.txt
      sql-bench/Data/ATIS/flight_class.txt:
        Rename: BitKeeper/deleted/.del-flight_class.txt~1801101474c29098 -> sql-bench/Data/ATIS/flight_class.txt
      sql-bench/Data/ATIS/fconnection.txt:
        Rename: BitKeeper/deleted/.del-fconnection.txt~e0ef6a8b5560a713 -> sql-bench/Data/ATIS/fconnection.txt
      sql-bench/Data/ATIS/flight.txt:
        Rename: BitKeeper/deleted/.del-flight.txt~e5065423760e99eb -> sql-bench/Data/ATIS/flight.txt
      sql-bench/Data/ATIS/fare.txt:
        Rename: BitKeeper/deleted/.del-fare.txt~ea0652f490bc24a6 -> sql-bench/Data/ATIS/fare.txt
      sql-bench/Data/ATIS/day_name.txt:
        Rename: BitKeeper/deleted/.del-day_name.txt~f813b215955d894c -> sql-bench/Data/ATIS/day_name.txt
      sql-bench/Data/ATIS/dual_carrier.txt:
        Rename: BitKeeper/deleted/.del-dual_carrier.txt~a7dd776224fbd92b -> sql-bench/Data/ATIS/dual_carrier.txt
      sql-bench/Data/ATIS/date_day.txt:
        Rename: BitKeeper/deleted/.del-date_day.txt~4e9a282fcf54cfd8 -> sql-bench/Data/ATIS/date_day.txt
      sql-bench/Data/ATIS/compound_class.txt:
        Rename: BitKeeper/deleted/.del-compound_class.txt~d4a2f1b7f96340b9 -> sql-bench/Data/ATIS/compound_class.txt
      sql-bench/Data/ATIS/connect_leg.txt:
        Rename: BitKeeper/deleted/.del-connect_leg.txt~f97b6e94e108bb36 -> sql-bench/Data/ATIS/connect_leg.txt
      sql-bench/Data/ATIS/code_description.txt:
        Rename: BitKeeper/deleted/.del-code_description.txt~f9117373e438b0e2 -> sql-bench/Data/ATIS/code_description.txt
      sql-bench/Data/ATIS/city.txt:
        Rename: BitKeeper/deleted/.del-city.txt~d96dd6d073344d2e -> sql-bench/Data/ATIS/city.txt
      sql-bench/Data/ATIS/class_of_service.txt:
        Rename: BitKeeper/deleted/.del-class_of_service.txt~21f6b9848b8c76d -> sql-bench/Data/ATIS/class_of_service.txt
      sql-bench/Data/ATIS/airport_service.txt:
        Rename: BitKeeper/deleted/.del-airport_service.txt~6ee6d5b852b3e38 -> sql-bench/Data/ATIS/airport_service.txt
      sql-bench/Data/ATIS/airline.txt:
        Rename: BitKeeper/deleted/.del-airline.txt~a79f8eadf853f2c8 -> sql-bench/Data/ATIS/airline.txt
      sql-bench/Data/ATIS/airport.txt:
        Rename: BitKeeper/deleted/.del-airport.txt~59c78514130e1f45 -> sql-bench/Data/ATIS/airport.txt
      sql-bench/Data/ATIS/aircraft.txt:
        Rename: BitKeeper/deleted/.del-aircraft.txt~15e4de7ab37c92d3 -> sql-bench/Data/ATIS/aircraft.txt
      sql-bench/TODO:
        Rename: BitKeeper/deleted/.del-TODO~cac6d7a63c426ae5 -> sql-bench/TODO
      sql-bench/limits/sybase.cfg:
        Rename: BitKeeper/deleted/.del-sybase.cfg~c4636b12767b3f14 -> sql-bench/limits/sybase.cfg
      sql-bench/limits/solid-nt4.cfg:
        Rename: BitKeeper/deleted/.del-solid-nt4.cfg~cca779f0c9e29d31 -> sql-bench/limits/solid-nt4.cfg
      sql-bench/limits/solid.cfg:
        Rename: BitKeeper/deleted/.del-solid.cfg~5ae0e4342eadb0fb -> sql-bench/limits/solid.cfg
      sql-bench/limits/pg.cfg:
        Rename: BitKeeper/deleted/.del-pg.cfg~db59cf39a5d417be -> sql-bench/limits/pg.cfg
      sql-bench/limits/mysql.cfg:
        Rename: BitKeeper/deleted/.del-mysql.cfg~9cab20a8771b93cf -> sql-bench/limits/mysql.cfg
      sql-bench/limits/oracle.cfg:
        Rename: BitKeeper/deleted/.del-oracle.cfg~affab21af8f438fd -> sql-bench/limits/oracle.cfg
      sql-bench/limits/mysql-4.1.cfg:
        Rename: BitKeeper/deleted/.del-mysql-4.1.cfg~b6c5e74aefc99e3c -> sql-bench/limits/mysql-4.1.cfg
      sql-bench/limits/mysql-3.23.cfg:
        Rename: BitKeeper/deleted/.del-mysql-3.23.cfg~3cf9d6be54b77a3c -> sql-bench/limits/mysql-3.23.cfg
      sql-bench/limits/mysql-4.0.cfg:
        Rename: BitKeeper/deleted/.del-mysql-4.0.cfg~6c9d63c85b5ef574 -> sql-bench/limits/mysql-4.0.cfg
      sql-bench/limits/mysql-3.22.cfg:
        Rename: BitKeeper/deleted/.del-mysql-3.22.cfg~e706f26a161175cd -> sql-bench/limits/mysql-3.22.cfg
      sql-bench/limits/msql.cfg:
        Rename: BitKeeper/deleted/.del-msql.cfg~52710b12932cceb9 -> sql-bench/limits/msql.cfg
      sql-bench/limits/ms-sql65.cfg:
        Rename: BitKeeper/deleted/.del-ms-sql65.cfg~6b9bc3c460dbee05 -> sql-bench/limits/ms-sql65.cfg
      sql-bench/limits/mimer.cfg:
        Rename: BitKeeper/deleted/.del-mimer.cfg~234e6c1c3c47b612 -> sql-bench/limits/mimer.cfg
      sql-bench/limits/ms-sql.cfg:
        Rename: BitKeeper/deleted/.del-ms-sql.cfg~1907964264d2786a -> sql-bench/limits/ms-sql.cfg
      sql-bench/limits/interbase.cfg:
        Rename: BitKeeper/deleted/.del-interbase.cfg~c6951a0376cc6ff3 -> sql-bench/limits/interbase.cfg
      sql-bench/limits/interbase-dialect3.cfg:
        Rename: BitKeeper/deleted/.del-interbase-dialect3.cfg~46277bdfc74c667a -> sql-bench/limits/interbase-dialect3.cfg
      sql-bench/limits/interbase-superserver.cfg:
        Rename: BitKeeper/deleted/.del-interbase-superserver.cfg~22501198689243b0 -> sql-bench/limits/interbase-superserver.cfg
      sql-bench/limits/interbase-dialect1.cfg:
        Rename: BitKeeper/deleted/.del-interbase-dialect1.cfg~659206b5b9a11036 -> sql-bench/limits/interbase-dialect1.cfg
      sql-bench/limits/empress.cfg:
        Rename: BitKeeper/deleted/.del-empress.cfg~1f97f34d6560a499 -> sql-bench/limits/empress.cfg
      sql-bench/limits/frontbase.cfg:
        Rename: BitKeeper/deleted/.del-frontbase.cfg~71369e9c002696e -> sql-bench/limits/frontbase.cfg
      sql-bench/limits/db2.cfg:
        Rename: BitKeeper/deleted/.del-db2.cfg~711099b4d7906959 -> sql-bench/limits/db2.cfg
      sql-bench/limits/access.cfg:
        Rename: BitKeeper/deleted/.del-access.cfg~5239ea3655b7bba0 -> sql-bench/limits/access.cfg
      sql-bench/limits/access_odbc.cfg:
        Rename: BitKeeper/deleted/.del-access_odbc.cfg~34b4cf0eda56c4b1 -> sql-bench/limits/access_odbc.cfg
      sql-bench/limits/Informix.cfg:
        Rename: BitKeeper/deleted/.del-Informix.cfg~b94188e1ececb51b -> sql-bench/limits/Informix.cfg
      sql-bench/limits/Adabas.cfg:
        Rename: BitKeeper/deleted/.del-Adabas.cfg~343ed4e7f8b02111 -> sql-bench/limits/Adabas.cfg
      sql-bench/README:
        Rename: BitKeeper/deleted/.del-README~b1aa0c1bf9f5eb5e -> sql-bench/README
      BitKeeper/deleted/.del-create-pg_fast-Linux_2.2.14_my_SMP_i686-crashed:
        Delete: sql-bench/Results/create-pg_fast-Linux_2.2.14_my_SMP_i686-crashed
      Makefile.am:
        Added back sql-bench
      configure.in:
        Added back sql-bench
      dbug/dbug.c:
        Fixed memory leak in _db_set()
        This is not a complete fix as we can still get memory leaks if we do any of the following:
        mysqld --debug --debug
        CAll DBUG_SET or DBUG_SET_INITIAL more than once in a program
        Use SET @@global.debug=xxxx
        
        At some point we should fix the above, but this is not critical for normal operation (only for debugging)
        
        Bug #24497 Valgrind warning: get_one_option
        
        Note that all changes to _db_set_ is only a variable access change, and can be ignored while reviewing the bug fix.
      mysql-test/t/flush_read_lock_kill-master.opt:
        Added '+' to option, to be able to use this together with --debug
      mysql-test/valgrind.supp:
        Removed warning that is now fixed
      mysys/ptr_cmp.c:
        Fixed wrong pointer read (probably never used)
      scripts/make_binary_distribution.sh:
        Added back sql_bench
      sql/field.h:
        Removed class function that was identical in parent class
      sql/mysqld.cc:
        Removed some calls to my_thread_init() / my_thread_end() that was not needed.
        Only call DBUG_SET_INITAL, not DBUG_SET
        (Fixes memory leak in dbug)
        Mark some code as deadcode
      sql/net_serv.cc:
        Add information about from where error comes
      sql-bench/bench-init.pl.sh:
        Cleaned up help text
      sql-bench/server-cfg.sh:
        Don't write '/' after server name of no ssl version
      sql-common/client.c:
        Don't call net_clear() on COM_QUIT. This avoids a warning from net_clear() after shutdown: "skipped ## bytes from file"
        BUG#21428: skipped 9 bytes from file: socket (3)" on "mysqladmin shutdown"
      sql/sql_parse.cc:
        Added comment
      sql/table.h:
        Removed compiler warning
      5d2412b0
    • unknown's avatar
      bug#24303 Wrong result for UPDATE IGNORE for NDB table: Refinement, only read... · 915000fe
      unknown authored
      bug#24303  Wrong result for UPDATE IGNORE for NDB table: Refinement, only read all fields for UPDATE IGNORE with pk (check if UPDATE command and pk in write_set)
      
      
      915000fe
    • unknown's avatar
      BUG#20637: "load data concurrent infile" locks the table · d8d23348
      unknown authored
      Note that we ignore CONCURRENT if LOAD DATA CONCURRENT is used from
      inside a stored routine and MySQL is compiled with Query Cache support
      (this is not in the manual).
      
      The problem was that the condition test of "we are inside stored routine"
      was reversed, thus CONCURRENT _worked only_ from stored routine.  The
      solution is to use proper condition test.
      
      No test case is provided because the test case would require a large
      amount of input, and it's hard to tell is SELECT is really blocked or
      just slow (subject to race).
      
      
      sql/sql_yacc.yy:
        Fix the condition of TL_WRITE_CONCURRENT_INSERT on LOAD DATA CONCURRENT,
        which was reversed, and return valid value if we are in SP.
      d8d23348
    • unknown's avatar
    • unknown's avatar
      Bug#20327: Marking of a wrong field leads to a wrong result on select with view, · a2fea1ef
      unknown authored
      prepared statement and subquery.
      
      When a field of a view from an outer select is resolved the find_field_in_view
      function creates an Item_direct_view_ref object that references the 
      corresponding view underlying field. After that the view_ref is marked
      as a dependent one. While resolving view underlying field it also get
      marked as a dependent one due to current_select still points to the subselect.
      Marking the view underlying field is wrong and lead to attaching conditions
      to a wrong table and thus to the wrong result of the whole statement.
      
      Now mark_select_range_as_dependent() function isn't called for fields from a 
      view underlying table.
      
      
      sql/sql_base.cc:
        Bug#20327: Marking of a wrong field leads to a wrong result on select with view, prepared statement and subquery.
        
        Now mark_select_range_as_dependent() function isn't called for fields from a
        view underlying table.
      mysql-test/r/ps.result:
        Added a test case for bug#20327: Marking of a wrong field leads to a wrong result on select with view, prepared statement and subquery.
      mysql-test/t/ps.test:
        Added a test case for bug#20327: Marking of a wrong field leads to a wrong result on select with view,prepared statement and subquery.
      a2fea1ef
  8. 28 Nov, 2006 6 commits
    • unknown's avatar
      A fix for Bug#24486 "Valgrind warnings: sp_head(), · 31855d98
      unknown authored
      deadlock_innodb:events_grant". This was a memory leak introduced by 
      the patch for Bug 22830.
      Post-review fixes.
      
      
      sql/sql_parse.cc:
        A fix for Bug#24486 "Valgrind warnings: sp_head(),
         deadlock_innodb:events_grant": delete the sphead object before
        returning with an error.
      31855d98
    • unknown's avatar
      Makefile.am: · da441ffe
      unknown authored
        Handle the case "sql_yacc.cc" is pregenerated or not, and that the
        case where the source and build tree is the same or not.
      
      
      sql/Makefile.am:
        Handle the case "sql_yacc.cc" is pregenerated or not, and that the
        case where the source and build tree is the same or not.
      da441ffe
    • unknown's avatar
      Bug#24156: Loose index scan not used with CREATE TABLE ...SELECT and similar · 64aff71e
      unknown authored
                 statements
      Currently the optimizer evaluates loose index scan only for top-level SELECT
      statements
      Extend loose index scan applicability by :
       - Test the applicability of loose scan for each sub-select, instead of the
         whole query. This change enables loose index scan for sub-queries.
       - allow non-select statements with SELECT parts (like, e.g. 
         CREATE TABLE .. SELECT ...) to use loose index scan.
      
      
      mysql-test/r/group_min_max.result:
        Bug#24156: Loose index scan not used with CREATE TABLE ...SELECT and similar
                   statements
         - test case
      mysql-test/t/group_min_max.test:
        Bug#24156: Loose index scan not used with CREATE TABLE ...SELECT and similar
                   statements
         - test case
      sql/opt_range.cc:
        Bug#24156: Loose index scan not used with CREATE TABLE ...SELECT and similar
                   statements
         - loose index scan will be tried over the current subselect 
           (lex->current_select) instead of the whole query (lex->select_lex).
         - allow non-select statements with SELECT parts (like, e.g. 
           CREATE TABLE .. SELECT ...) to use loose index scan.
      64aff71e
    • unknown's avatar
      BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0) · fad411e5
      unknown authored
       When implicitly converting string fields to numbers the 
       string-to-number conversion error was not sent to the client.
       Added code to send the conversion error as warning.
       
       We also need to prevent generation of warnings from the places
       where val_xxx() methods are called for the sole purpose of updating
       the Item::null_value flag.
       To achieve that a special function is added (and called) : 
       update_null_value(). This function will set the no_errors flag and
       will call val_xxx(). The warning generation in Field_string::val_xxx()
       will use the flag when generating the conversion warnings. 
      
      
      mysql-test/r/compare.result:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - non-convertible strings in arithmetic operations
      mysql-test/r/func_gconcat.result:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - non-convertible strings in arithmetic operations
      mysql-test/r/func_group.result:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - non-convertible strings in arithmetic operations
      mysql-test/r/type_varchar.result:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - test case
      mysql-test/t/type_varchar.test:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - test case
      sql/field.cc:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - send conversion warning to the client
      sql/item.cc:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - send conversion warning to the client
      sql/item.h:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - added a special function to explicitly update the null_value
      sql/item_func.h:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - added a special function to explicitly update the null_value
      sql/item_subselect.h:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - added a special function to explicitly update the null_value
      sql/item_sum.cc:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - added a special function to explicitly update the null_value
      sql/item_sum.h:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - added a special function to explicitly update the null_value
      sql/sql_string.h:
        BUG#11927: Warnings shown for CAST( chr as signed) but not (chr + 0)
         - send conversion warning to the client
      fad411e5
    • unknown's avatar
      opt_range.cc: · d607f40b
      unknown authored
        dummy commit to trigger pushbuild
      
      
      sql/opt_range.cc:
        dummy commit to trigger pushbuild
      d607f40b
    • unknown's avatar
      ndb - fiexed for bug#15021, binlog_index table become inconsistent if errors... · ac7cb374
      unknown authored
      ndb - fiexed for bug#15021, binlog_index table become inconsistent if errors during purge of binlogs.
      
      improved the original patch, changed if/else to switch/case.
      
      
      sql/table.cc:
        changed if/else to switch/case.
      ac7cb374
  9. 27 Nov, 2006 3 commits
    • unknown's avatar
      Increased heap max length to > 4G for 64 bit machines · 8e9d6d50
      unknown authored
      Initialize key_part->type on open. This caused key_copy() to fail for bit_fields. (key_copy is used in HANDLER and opt_range)
      
      
      include/heap.h:
        Increased heap max length to > 4G for 64 bit machines
      mysql-test/r/show_check.result:
        Updated results after heap size change
      mysql-test/r/type_bit.result:
        Added test for bug in bit field handling (in handler and opt_range.cc)
      mysql-test/t/type_bit.test:
        Added test for bug in bit field handling (in handler and opt_range.cc)
      sql/ha_heap.cc:
        Increased heap max length to > 4G for 64 bit machines
      sql/item_sum.cc:
        Increased heap max length to > 4G for 64 bit machines
      sql/mysqld.cc:
        Increased heap max length to > 4G for 64 bit machines
      sql/set_var.cc:
        Increased heap max length to > 4G for 64 bit machines
      sql/sql_class.h:
        Increased heap max length to > 4G for 64 bit machines
      sql/sql_select.cc:
        Increased heap max length to > 4G for 64 bit machines
      sql/table.cc:
        Initialize key_part->type ; This was used for bit fields but only set in temporary tables
      sql/uniques.cc:
        Increased heap max length to > 4G for 64 bit machines
      8e9d6d50
    • unknown's avatar
      Removed compiler warnings · 4555818f
      unknown authored
      Ensure that my_size_t is always unsigned (to get predictiable results from system to system)
      Removed some %lld, as these are not portable
      
      
      BUILD/FINISH.sh:
        Remove configure files from storage engines (as some of them may be old versions and may cause conflicts)
      client/mysqldump.c:
        Removed compiler warning
      client/mysqlslap.c:
        Removed compiler warning
      client/mysqltest.c:
        Removed compiler warning
      cmd-line-utils/readline/bind.c:
        Removed compiler warning
      cmd-line-utils/readline/histfile.c:
        Removed compiler warning
      include/my_global.h:
        Ensure that my_size_t is always unsigned (to get predictiable results from system to system)
        Moved my_offset_t here from parse_file.h
      sql/event_data_objects.cc:
        Removed compiler warning
      sql/event_scheduler.cc:
        Removed compiler warning
      sql/field.h:
        Removed compiler warning
      sql/ha_ndbcluster_binlog.cc:
        Removed compiler warning
      sql/ha_partition.cc:
        Removed compiler warning
      sql/item_strfunc.cc:
        Removed compiler warning
      sql/log_event.cc:
        Removed compiler warning
      sql/mysqld.cc:
        Removed compiler warning
      sql/parse_file.h:
        Moved my_offset_t to my_global.h
      sql/rpl_utility.cc:
        Removed compiler warning
      sql/sql_binlog.cc:
        Removed compiler warning
      sql/sql_cache.cc:
        Removed compiler warning
      sql/tztime.cc:
        Removed compiler warning
      storage/archive/ha_archive.cc:
        Removed compiler warning
        Removed %lld as it's not portable
      storage/heap/hp_write.c:
        Removed compiler warning
      storage/innobase/os/os0file.c:
        Removed compiler warning
      storage/myisam/myisampack.c:
        Removed compiler warning
      storage/myisammrg/myrg_rkey.c:
        Removed compiler warning
      storage/ndb/include/kernel/signaldata/DictTabInfo.hpp:
        Use my_offsetof instead of offsetof to get rid of compiler warnings
      storage/ndb/src/kernel/blocks/dbdict/printSchemaFile.cpp:
        Removed compiler warning
      storage/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp:
        Removed compiler warning
        Note: Someone from NDB team should check this fix!
      storage/ndb/src/kernel/vm/Rope.cpp:
        Removed compiler warning
      storage/ndb/src/mgmapi/mgmapi.cpp:
        Removed compiler warning
      storage/ndb/src/ndbapi/Ndb.cpp:
        Removed compiler warning
      storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
        Removed compiler warning
      storage/ndb/src/ndbapi/NdbScanOperation.cpp:
        Removed compiler warning
      storage/ndb/src/ndbapi/NdbTransaction.cpp:
        Removed compiler warning
      storage/ndb/src/ndbapi/Ndblist.cpp:
        Removed compiler warning
      4555818f
    • unknown's avatar
      Bug#17254: Error for DEFINER security on VIEW provides too much info · e784d975
      unknown authored
      If a view was created with the DEFINER security and later the definer user
      was dropped then a SELECT from the view throws the error message saying that
      there is no definer user is registered. This is ok for a root but too much
      for a mere user.
      
      Now the st_table_list::prepare_view_securety_context() function reveals
      the absence of the definer only to a superuser and throws the 'access denied'
      error to others.
      
      
      mysql-test/t/view_grant.test:
        Added a test case for bug#17254: Error for DEFINER security on VIEW provides too much info
      mysql-test/r/view_grant.result:
        Added a test case for bug#17254: Error for DEFINER security on VIEW provides too much info
      sql/table.cc:
        Bug#17254: Error for DEFINER security on VIEW provides too much info
        Now the st_table_list::prepare_view_securety_context() function reveals
        the absence of the definer only to a superuser and throws the 'access denied'
        error to others.
      e784d975
  10. 26 Nov, 2006 1 commit
    • unknown's avatar
      Fixed a LOT of compiler warnings · cb4895d2
      unknown authored
      Added missing DBUG_RETURN statements (in mysqldump.c)
      Added missing enums
      Fixed a lot of wrong DBUG_PRINT() statements, some of which could cause crashes
      Removed usage of %lld and %p in printf strings as these are not portable or produces different results on different systems.
      
      
      client/mysqldump.c:
        Fixed some compiler warnings
        Added some missing DBUG_RETURN
        Remove copying of 'cluster' database
      client/mysqlslap.c:
        Fixed compiler warnings
      client/mysqltest.c:
        After merge fix
      extra/yassl/taocrypt/include/algebra.hpp:
        Removed compiler warning
      mysql-test/include/im_check_env.inc:
        Fixed race condition (mysqld1 could report 'starting' or 'online'
      mysql-test/mysql-test-run.pl:
        After merge fixes
        Added missing directory to LD_LIBRARY_PATH
      mysql-test/r/ctype_cp1250_ch.result:
        After merge fix
      mysql-test/r/im_cmd_line.result:
        Fixed race condition
      mysql-test/r/im_daemon_life_cycle.result:
        Fixed race condition
      mysql-test/r/im_instance_conf.result:
        Fixed race condition
      mysql-test/r/im_life_cycle.result:
        Fixed race condition
      mysql-test/r/im_utils.result:
        Fixed race condition
      mysql-test/r/log_tables.result:
        Fixed wrong result
      mysql-test/t/disabled.def:
        Disabled ndb_restore_partion, as ndb_restore_compate caused it to fail, becasue of table 'cluster/def/schema' which is stored in ndb_backup50
      mysys/my_compress.c:
        Removed compiler warnings
      mysys/my_getopt.c:
        Ensure we always have at least one space between option name and value
      plugin/fulltext/plugin_example.c:
        Removed compiler warnings
      server-tools/instance-manager/mysql_connection.cc:
        After merge fix
      sql/event_data_objects.cc:
        Fixed compiler warnings
        Fixed platform compatibility issues (%lld is not portable)
      sql/event_data_objects.h:
        Fixed compiler warnings
      sql/event_db_repository.cc:
        Fixed compiler warnings
      sql/event_queue.cc:
        Fixed compiler warnings
      sql/event_scheduler.cc:
        Fixed compiler warnings
      sql/events.cc:
        Fixed compiler warnings
      sql/field.cc:
        Fixed compiler warnings
      sql/ha_ndbcluster.cc:
        Fixed compiler warnings
      sql/ha_ndbcluster_binlog.cc:
        Fixed compiler warnings
      sql/ha_partition.cc:
        Fixed compiler warnings
      sql/handler.cc:
        Fixed compiler warnings
      sql/item_cmpfunc.cc:
        Fixed DBUG_PRINT style
      sql/item_func.cc:
        Fixed compiler warnings
      sql/log.cc:
        Fixed compiler warnings
      sql/log_event.cc:
        Fixed compiler warnings
      sql/mysqld.cc:
        Fixed compiler warnings
      sql/opt_range.cc:
        Fixed compiler warnings
      sql/repl_failsafe.cc:
        Indentation fixes
      sql/rpl_rli.cc:
        Fixed compiler warnings
      sql/rpl_tblmap.cc:
        Fixed compiler warnings
      sql/set_var.cc:
        Fixed compiler warnings
      sql/slave.cc:
        Fixed compiler warnings
      sql/sp_head.cc:
        Fixed compiler warnings
      sql/sql_base.cc:
        Fixed compiler warnings
        Fixed indentation
      sql/sql_binlog.cc:
        Fixed compiler warnings
      sql/sql_cache.cc:
        Fixed compiler warnings
      sql/sql_class.cc:
        Fixed compiler warnings
      sql/sql_handler.cc:
        Fixed compiler warnings
      sql/sql_lex.cc:
        Fixed compiler warnings
      sql/sql_parse.cc:
        Fixed compiler warnings
      sql/sql_partition.cc:
        Fixed compiler warnings
      sql/sql_prepare.cc:
        Fixed compiler warnings
      sql/sql_table.cc:
        Fixed compiler warnings
      sql/sql_test.cc:
        Fixed DBUG_PRINT style
      sql/sql_trigger.cc:
        Fixed DBUG_PRINT style
      sql/table.cc:
        Fixed compiler warnings
      storage/federated/ha_federated.cc:
        Fixed compiler warnings
      storage/myisam/mi_rsamepos.c:
        Fixed compiler warnings
      storage/ndb/include/ndb_global.h.in:
        After merge fix
      storage/ndb/include/util/NdbOut.hpp:
        Inform gcc that ndbout_c takes a printf() string as argument
      storage/ndb/include/util/SimpleProperties.hpp:
        After merge fixes
      storage/ndb/src/kernel/blocks/backup/Backup.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/cmvmi/Cmvmi.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/dbacc/DbaccMain.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/dbdih/DbdihMain.cpp:
        Fixed compiler warnings
        Fixed usage of uninitialized value (Got help from Jonas with patch)
      storage/ndb/src/kernel/blocks/dblqh/DblqhMain.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/lgman.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/pgman.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/restore.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/dbtc/DbtcMain.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/dbtup/DbtupCommit.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/dbtup/DbtupDiskAlloc.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/dbtup/DbtupFixAlloc.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/ndbfs/Ndbfs.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/blocks/suma/Suma.cpp:
        Fixed compiler warnings
        Added missing enum's to switch
      storage/ndb/src/kernel/vm/Configuration.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/vm/DLHashTable.hpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/vm/RWPool.hpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/vm/SimulatedBlock.cpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/vm/WOPool.hpp:
        Fixed compiler warnings
      storage/ndb/src/kernel/vm/ndbd_malloc_impl.cpp:
        Fixed compiler warnings
      storage/ndb/src/mgmclient/CommandInterpreter.cpp:
        Fixed compiler warnings
      storage/ndb/src/mgmsrv/MgmtSrvr.cpp:
        Fixed compiler warnings
      storage/ndb/src/ndbapi/DictCache.cpp:
        Fixed compiler warnings
      storage/ndb/src/ndbapi/NdbDictionaryImpl.cpp:
        Fixed compiler warnings
      storage/ndb/src/ndbapi/NdbEventOperationImpl.cpp:
        Fixed compiler warnings
      storage/ndb/src/ndbapi/NdbIndexOperation.cpp:
        Fixed compiler warnings
      storage/ndb/src/ndbapi/NdbIndexStat.cpp:
        Initialize possible uninitialized variable
      storage/ndb/src/ndbapi/NdbOperationInt.cpp:
        Fixed compiler warnings
      storage/ndb/src/ndbapi/NdbRecAttr.cpp:
        Added missing enum's (To avoid compiler warnings)
      storage/ndb/src/ndbapi/NdbScanOperation.cpp:
        Fixed compiler warnings
      storage/ndb/src/ndbapi/ObjectMap.hpp:
        Fixed compiler warnings
      storage/ndb/tools/desc.cpp:
        Fixed compiler warnings
      storage/ndb/tools/restore/Restore.cpp:
        Fixed compiler warnings
      storage/ndb/tools/restore/consumer_restore.cpp:
        Fixed compiler warnings
      unittest/mytap/t/basic-t.c:
        Fixed compiler warnings
      unittest/mytap/tap.c:
        Fixed compiler warnings
      cb4895d2
  11. 23 Nov, 2006 3 commits
    • unknown's avatar
      BUG#24488 (Valgrind warnings on invalid read in mysql_client_binlog_statement): · c4b99c85
      unknown authored
      Disabling debug printouts for valgrind builds that print unallocated memory.
      
      
      sql/sql_binlog.cc:
        Disabling debug printouts for valgrind builds that print unallocated memory
      c4b99c85
    • unknown's avatar
      BUG#24533 (uninitialized null bits in m_after_image): · 18ea1f45
      unknown authored
      Removing valgrind memory checks from code.
      
      
      sql/log_event.cc:
        Removing valgrind memory checks from code.
      18ea1f45
    • unknown's avatar
      BUG#24533 (uninitialized null but of m_after_image): · 0cf3b1bd
      unknown authored
      Patch to fix valgrind warning that uninitialized bytes were written. 
      The warning was caused by set_default(), which assumes that the field pointer is pointing
      into record[0], while all other functions honors the move_field_offset().
      
      
      sql/log_event.cc:
        Changing unpack_row() to always unpack into table->record[0] since the Field class hierarchy
        contain too many dependencies on the record to operate on being in table->record[0].
        Changing code to use the new unpack_row(), which requires some juggling of records in
        one case.
      0cf3b1bd
  12. 22 Nov, 2006 1 commit
    • unknown's avatar
      BUG#21635: MYSQL_FIELD struct's member strings seem to misbehave for · 71a6bf42
      unknown authored
      expression cols.
      
      The problem was that MYSQL_FIELD::org_name was set for MIN() and MAX()
      functions (COUNT() is also mentioned in the bug report but was already
      fixed).
      
      After this patch for expressions MYSQL_FIELD::name is set to either
      expression itself or its alias, and other data origin fields of
      MYSQL_FILED (db, org_table, table, org_name) are empty strings.
      
      
      sql/item_sum.cc:
        For expressions only col_name should be non-empty string.
      tests/mysql_client_test.c:
        Add test case for bug#21635: MYSQL_FIELD struct's member strings seem
        to misbehave for expression cols.
      71a6bf42
  13. 21 Nov, 2006 4 commits
    • unknown's avatar
      Added --debug-info to most clients to detect memory leaks in mysql-test-run · 22b80d14
      unknown authored
      Moved .progress files into the log directory
      Moved 'cluster' database tables into the MySQL database, to not have 'cluster' beeing a reserved database name
      Fixed bug where mysqld got a core dump when trying to use a table created by MySQL 3.23
      Fixed some compiler warnings
      Fixed small memory leak in libmysql
      Note that this doesn't changeset doesn't include the new mysqldump.c code required to run some tests. This will be added when I merge 5.0 to 5.1
      
      
      client/client_priv.h:
        Added OPT_DEBUG_INFO and OPT_COLUMN_TYPES
      client/mysql.cc:
        Split --debug-info into --debug-info and --column-type-info
      client/mysql_upgrade.c:
        Give only error info at end if using --debug-info
      client/mysqladmin.cc:
        Added --debug-info to detect memory leaks in mysqltest
      client/mysqlbinlog.cc:
        Added --debug-info to detect memory leaks in mysqltest
      client/mysqlcheck.c:
        Added --debug-info to detect memory leaks in mysqltest
      client/mysqlimport.c:
        Added --debug-info to detect memory leaks in mysqltest
      client/mysqlshow.c:
        Added --debug-info to detect memory leaks in mysqltest
      client/mysqltest.c:
        Added --debug-info to detect memory leaks in mysqltest
        Added option --logdir to force .progress files in a specific directory
      libmysql/libmysql.c:
        Fixed memory leak
      mysql-test/include/ndb_setup_slave.inc:
        Moved cluster tables under 'mysql'
      mysql-test/include/query_cache.inc:
        Added more tests for query cache
      mysql-test/lib/init_db.sql:
        Move cluster.binlog_index -> mysql.binlog_index
      mysql-test/lib/mtr_report.pl:
        Find memory leaks
      mysql-test/mysql-test-run-shell.sh:
        Added --debug-info to programs to detect memory leaks
      mysql-test/mysql-test-run.pl:
        Added --debug-info to programs to detect memory leaks
        Force log files to var/log
        cluster tables moved under 'mysql'
      mysql-test/r/cache_innodb.result:
        New query cache test with innodb
      mysql-test/r/connect.result:
        binlog_index is now in mysql
      mysql-test/r/drop.result:
        Removed 'cluster' database
      mysql-test/r/information_schema.result:
        Removed 'cluster' database
      mysql-test/r/mysqlcheck.result:
        cluster.binlog_index -> mysql.binlog_index
      mysql-test/r/ndb_binlog_basic.result:
        cluster.binlog_index -> mysql.binlog_index
      mysql-test/r/ndb_binlog_ddl_multi.result:
        cluster -> mysql
      mysql-test/r/ndb_binlog_discover.result:
        cluster -> mysql
      mysql-test/r/ndb_binlog_multi.result:
        cluster -> mysql
      mysql-test/r/ndb_restore_compat.result:
        cluster -> mysql
      mysql-test/r/ps_1general.result:
        Removed cluster database
      mysql-test/r/rpl_create_database.result:
        Removed cluster database
      mysql-test/r/rpl_load_from_master.result:
        Removed cluster database
      mysql-test/r/rpl_loaddata_m.result:
        Removed cluster database
      mysql-test/r/rpl_ndb_bank.result:
        cluster -> mysql
      mysql-test/r/rpl_ndb_dd_advance.result:
        cluster -> mysql
      mysql-test/r/rpl_ndb_dd_basic.result:
        cluster -> mysql
      mysql-test/r/rpl_ndb_idempotent.result:
        cluster -> mysql
      mysql-test/r/rpl_ndb_log.result:
        cluster -> mysql
      mysql-test/r/rpl_ndb_multi.result:
        cluster -> mysql
      mysql-test/r/rpl_ndb_sync.result:
        cluster -> mysql
      mysql-test/r/rpl_row_basic_11bugs.result:
        Removed cluster database
      mysql-test/r/rpl_truncate_7ndb.result:
        Position have changed
      mysql-test/r/rpl_truncate_7ndb_2.result:
        cluster -> mysql
      mysql-test/r/schema.result:
        Removed cluster database
      mysql-test/r/show_check.result:
        Removed cluster database
      mysql-test/r/system_mysql_db.result:
        binlog_index moved under mysql
      mysql-test/r/upgrade.result:
        More tests
      mysql-test/t/information_schema.test:
        cluster -> mysql
      mysql-test/t/mysqldump.test:
        More test to detect memory leaks
      mysql-test/t/ndb_binlog_basic.test:
        cluster -> mysql
      mysql-test/t/ndb_binlog_multi.test:
        cluster -> mysql
      mysql-test/t/ndb_restore_compat.test:
        cluster -> mysql
      mysql-test/t/rpl_ndb_bank.test:
        cluster -> mysql
      mysql-test/t/rpl_ndb_dd_advance.test:
        cluster -> mysql
      mysql-test/t/rpl_ndb_idempotent.test:
        cluster -> mysql
      mysql-test/t/rpl_ndb_multi.test:
        cluster -> mysql
      mysql-test/t/rpl_ndb_sync.test:
        cluster -> mysql
      mysql-test/t/system_mysql_db_fix.test:
        Drop also binlog_index
      mysql-test/t/upgrade.test:
        Check that tables created with 3.23 works
      mysys/my_error.c:
        Remove all registered errors (to avoid memory leaks)
      mysys/my_init.c:
        call my_error_unregister_all() to avoid some possible memory leaks
      mysys/mysys_priv.h:
        Added prototype
      scripts/mysql_create_system_tables.sh:
        cluster -> mysql
      scripts/mysql_fix_privilege_tables.sql:
        Changed -- to #
        Create binlog_index table if it dosesn't exist
      sql/field.cc:
        Made offset() inline
      sql/field.h:
        Changed prototype of offset() to not make it depending on TABLE structure
      sql/field_conv.cc:
        Removed some usage of current_thd
      sql/ha_ndbcluster_tables.h:
        cluster -> mysql
      sql/item_sum.cc:
        Usage of new 'offset' parameters
      sql/key.cc:
        Changed 'find_ref_key' to not be dependent on field->table
        (This fixed a crash when using a table created in MySQL 3.23)
      sql/mysql_priv.h:
        Changed find_ref_key() to not use field->table
      sql/mysqld.cc:
        Fix that plugin_init() works properly on bootstrap
        (Previously we got warnings from plugin_init)
      sql/sql_class.cc:
        new 'field->offset()'
      sql/sql_select.cc:
        New field->offset()
      sql/table.cc:
        We don't need field->table to be set in find_ref_key() or find_field() anymore.
      storage/archive/ha_archive.cc:
        New field->offset()
      storage/federated/ha_federated.cc:
        New field->offset()
      storage/innobase/handler/ha_innodb.cc:
        Fixed compiler warnings
      storage/myisam/ha_myisam.cc:
        Fixed compiler warnings (Wrong paramter to sprintf())
        New field->offset()
      storage/myisam/ha_myisam.h:
        Fixed wrong type of table_flags
      storage/ndb/tools/restore/Restore.cpp:
        Fixed compiler warning
      mysql-test/r/1st.result:
        New BitKeeper file ``mysql-test/r/1st.result''
      mysql-test/std_data/old_table-323.frm:
        New BitKeeper file ``mysql-test/std_data/old_table-323.frm''
      mysql-test/t/1st.test:
        New BitKeeper file ``mysql-test/t/1st.test''
      22b80d14
    • unknown's avatar
      Fix typo in comment · 102cc31e
      unknown authored
      102cc31e
    • unknown's avatar
      Update after merge. · a395083e
      unknown authored
      Use mutex when reading prepared_stmt_count global status variable.
      
      Update test case for bug 16365 and bug 23159: add test for
      prepared_stmt_count being decreased when some connection that had
      prepared statements is closed.
      
      
      mysql-test/r/ps.result:
        Update result for bug#16365 and bug#23159.
      mysql-test/t/ps.test:
        Update test case for bug#16365 and bug#23159: add test for
        prepared_stmt_count being decreased when some connection that had
        prepared statements is closed.
      sql/mysqld.cc:
        Use mutex when reading prepared_stmt_count global status variable.
      a395083e
    • unknown's avatar
      BUG#23159: prepared_stmt_count should be status variable · 512b1094
      unknown authored
      Make Prepared_stmt_count a global status variable, accessible via
      SHOW STATUS LIKE 'Prepared_stmt_count';.  Documentation should be
      updated.
      
      
      mysql-test/r/ps.result:
        Update result for bug#16365: Prepared Statements: DoS with too many
        open statements, according to bug#23159: prepared_stmt_count should be
        status variable.
      mysql-test/t/ps.test:
        Update test case for bug#16365: Prepared Statements: DoS with too many
        open statements, according to bug#23159: prepared_stmt_count should be
        status variable.
      sql/mysqld.cc:
        Add Prepared_stmt_count as global status variable.
      sql/set_var.cc:
        Remove prepared_stmt_count as system variable.
      512b1094