An error occurred fetching the project authors.
  1. 07 Mar, 2006 1 commit
  2. 06 Mar, 2006 1 commit
    • unknown's avatar
      Win fixes · 0b4e062b
      unknown authored
       - Use tmp sh file both in system and popen 
      
      
      client/mysqltest.c:
        Introduce common functions to handle unix emulation on windows using a temporary sh file.
        Use it both in my_popen and my_system.
      mysql-test/r/mysqltest.result:
        Update test result
      mysql-test/t/mysqltest.test:
        Fix "windows paths" in three places that doesn't automatically get fixed
        Uset the output file mysqltest.sql instead of con.sql as con is not an allowed filename on Windows
        Use system for util functions
      0b4e062b
  3. 28 Feb, 2006 1 commit
    • unknown's avatar
      mysql-test-run.sh: · 7779319b
      unknown authored
        Fix URLs.
      README:
        Fix URL.
      mysqltest.result:
        Update test result for real_sleep error message.
      mysqltest.c:
        Fix do_sleep() to print correct command name for real_sleep.
      
      
      client/mysqltest.c:
        Fix do_sleep() to print correct command name for real_sleep.
      mysql-test/r/mysqltest.result:
        Update test result for real_sleep error message.
      mysql-test/README:
        Fix URL.
      mysql-test/mysql-test-run.sh:
        Fix URLs.
      7779319b
  4. 24 Feb, 2006 1 commit
    • unknown's avatar
      Fixes to embedded server to be able to run tests with it · 988f0be6
      unknown authored
      (Needed for "list of pushes" web page and autopush)
      
      
      include/mysql.h:
        Fix to embedded server to be able to run tests on it
      libmysql/libmysql.c:
        Fix to embedded server to be able to run tests on it
      libmysqld/emb_qcache.cc:
        Fix to embedded server to be able to run tests on it
      libmysqld/embedded_priv.h:
        Fix to embedded server to be able to run tests on it
      libmysqld/lib_sql.cc:
        Fix to embedded server to be able to run tests on it
      libmysqld/libmysqld.c:
        Fix to embedded server to be able to run tests on it
      mysql-test/mysql-test-run.sh:
        Fix to embedded server to be able to run tests on it
      mysql-test/r/binlog.result:
        Updated test for embedded server
      mysql-test/r/ctype_cp932.result:
        Updated test for embedded server
      mysql-test/r/innodb.result:
        Updated test for embedded server
      mysql-test/r/mysqltest.result:
        Updated test for embedded server
      mysql-test/r/query_cache.result:
        Updated test for embedded server
      mysql-test/r/query_cache_notembedded.result:
        Updated test for embedded server
      mysql-test/r/sp-error.result:
        Updated test for embedded server
      mysql-test/r/sp.result:
        Updated test for embedded server
      mysql-test/r/subselect.result:
        Updated test for embedded server
      mysql-test/r/view.result:
        Updated test for embedded server
      mysql-test/r/view_grant.result:
        Updated test for embedded server
      mysql-test/t/backup.test:
        Updated test for embedded server
      mysql-test/t/binlog.test:
        Updated test for embedded server
      mysql-test/t/blackhole.test:
        Updated test for embedded server
      mysql-test/t/compress.test:
        Updated test for embedded server
      mysql-test/t/ctype_cp932.test:
        Updated test for embedded server
      mysql-test/t/delayed.test:
        Updated test for embedded server
      mysql-test/t/handler.test:
        Updated test for embedded server
      mysql-test/t/innodb.test:
        Updated test for embedded server
      mysql-test/t/mysql.test:
        Updated test for embedded server
      mysql-test/t/mysql_client_test.test:
        Updated test for embedded server
      mysql-test/t/mysqltest.test:
        Updated test for embedded server
      mysql-test/t/query_cache.test:
        Updated test for embedded server
      mysql-test/t/query_cache_notembedded.test:
        Updated test for embedded server
      mysql-test/t/read_only.test:
        Updated test for embedded server
      mysql-test/t/skip_grants.test:
        Updated test for embedded server
      mysql-test/t/sp-destruct.test:
        Updated test for embedded server
      mysql-test/t/sp-error.test:
        Updated test for embedded server
      mysql-test/t/sp-threads.test:
        Updated test for embedded server
      mysql-test/t/sp.test:
        Updated test for embedded server
      mysql-test/t/subselect.test:
        Updated test for embedded server
      mysql-test/t/temp_table.test:
        Updated test for embedded server
      mysql-test/t/view.test:
        Updated test for embedded server
      mysql-test/t/view_grant.test:
        Updated test for embedded server
      mysql-test/t/wait_timeout.test:
        Updated test for embedded server
      mysys/mf_dirname.c:
        Review fix: Don't access data outside of array
      mysys/my_bitmap.c:
        Remove compiler warnings
      scripts/mysql_fix_privilege_tables.sql:
        Add flush privileges to .sql script so that one doesn't have to reboot mysqld when one runs the mysql_fix_privilege_script
      sql-common/client.c:
        Updated test for embedded server
      sql/item.cc:
        Remove DBUG_PRINT statement that can cause crashes when running with --debug
      sql/mysqld.cc:
        Fix to embedded server to be able to run tests on it
      sql/protocol.cc:
        Fix to embedded server to be able to run tests on it
        (Trivial reconstruction of code)
      sql/protocol.h:
        Fix to embedded server to be able to run tests on it
      sql/sql_base.cc:
        Better comment
      sql/sql_class.cc:
        Fix to embedded server to be able to run tests on it
      sql/sql_class.h:
        Fix to embedded server to be able to run tests on it
      sql/sql_cursor.cc:
        Fix to embedded server to be able to run tests on it
      sql/sql_parse.cc:
        Fix to embedded server to be able to run tests on it
        Don't crash for disabled commands when using embedded server
      sql/sql_prepare.cc:
        Fix to embedded server to be able to run tests on it
      mysql-test/r/ctype_cp932_notembedded.result:
        New BitKeeper file ``mysql-test/r/ctype_cp932_notembedded.result''
      mysql-test/r/innodb_notembedded.result:
        New BitKeeper file ``mysql-test/r/innodb_notembedded.result''
      mysql-test/r/sp.result.orig:
        New BitKeeper file ``mysql-test/r/sp.result.orig''
      mysql-test/r/sp_notembedded.result:
        New BitKeeper file ``mysql-test/r/sp_notembedded.result''
      mysql-test/r/subselect_notembedded.result:
        New BitKeeper file ``mysql-test/r/subselect_notembedded.result''
      mysql-test/t/ctype_cp932_notembedded.test:
        New BitKeeper file ``mysql-test/t/ctype_cp932_notembedded.test''
      mysql-test/t/innodb_notembedded.test:
        New BitKeeper file ``mysql-test/t/innodb_notembedded.test''
      mysql-test/t/sp.test.orig:
        New BitKeeper file ``mysql-test/t/sp.test.orig''
      mysql-test/t/sp_notembedded.test:
        New BitKeeper file ``mysql-test/t/sp_notembedded.test''
      mysql-test/t/subselect_notembedded.test:
        New BitKeeper file ``mysql-test/t/subselect_notembedded.test''
      988f0be6
  5. 23 Feb, 2006 1 commit
    • unknown's avatar
      Add new parameter to do_eval so that only unescaped variables in input string... · 09eee68d
      unknown authored
      Add new parameter to do_eval so that only unescaped variables in input string is expanded and rest of string is left untouched.
      
      
      client/mysqltest.c:
        Add new parameter to 'do_eval' that will add any escape chars found in the input string to the output string. 
        This is used in 'do_system' and in 'do_exec' where only unescaped variables
        will be expanded, rest of the string will be left untouched.
      mysql-test/r/mysqltest.result:
        Update test result
      mysql-test/t/mysqldump.test:
        Revert previous patch that added extra \\ in "exec" command
      mysql-test/t/mysqltest.test:
        Revert previous patch that added extra \\ in exec command
      09eee68d
  6. 15 Feb, 2006 1 commit
  7. 10 Feb, 2006 1 commit
    • unknown's avatar
      Bug#17280 mysqltest, --echo sometimes does not expand $variables · 5e66594a
      unknown authored
       - Evaluate all variables in the text before printing it to result file
      
      
      client/mysqltest.c:
        Update echo command to vvaluate all variables in the string before printing, allow
        for variable names to be escaped using \
      mysql-test/r/mysqltest.result:
        Update results for echo
      mysql-test/t/mysqltest.test:
        Add more advanced tests for echo of strings with several variables 
        and/or text plus variables. Also test that variables can be escaped
      5e66594a
  8. 06 Feb, 2006 1 commit
    • unknown's avatar
      Two new tests for replace_regex · 73832617
      unknown authored
      mysql-test/r/binlog_stm_binlog.result:
        Result
      mysql-test/r/mysqltest.result:
        Result
      mysql-test/t/binlog_stm_binlog.test:
        New test for replace_regex
      mysql-test/t/mysqltest.test:
        New test for replace_regex
      73832617
  9. 31 Jan, 2006 2 commits
  10. 24 Jan, 2006 1 commit
    • unknown's avatar
      Make it possible to run mysql-test-run.pl with default test suite in different vardir. · 219af34a
      unknown authored
      mysql-test/include/have_outfile.inc:
        Use MYSQLTEST_VARDIR
      mysql-test/include/test_outfile.inc:
        Use MYSQLTEST_VARDIR
      mysql-test/mysql-test-run.pl:
        Create variable $MYSQLTEST_VARDIR that points to  the vardir
        Don't create a symlink from var/ to the physical vardir if it's somewhere else
        Setup a symlink(or copy dir on windows) for std_data so it is available in the physical vardir
        Use "../tmp" as slave-load-tmpdir, since the server is started in var/master-data and slave in var/slave-data they will both find the dumps in "../tmp"
      mysql-test/mysql-test-run.sh:
        Export MYSQLTEST_VARDIR, always pointing at mysql-test/var
      mysql-test/r/backup.result:
        Use MYSQLTEST_VARDIR
      mysql-test/r/blackhole.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/loaddata.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/mysqlbinlog.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/mysqltest.result:
        Use MYSQLTEST_VARDIR
      mysql-test/r/outfile.result:
        Use MYSQLTEST_VARDIR
      mysql-test/r/query_cache.result:
        Add missing drop function
      mysql-test/r/rpl000001.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/rpl000004.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/rpl_innodb.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/rpl_loaddata.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/rpl_loaddata_rule_m.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/rpl_loaddata_rule_s.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/rpl_loaddatalocal.result:
        Use MYSQLTEST_VARDIR
      mysql-test/r/rpl_log.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/rpl_misc_functions.result:
        Use MYSQLTEST_VARDIR
      mysql-test/r/rpl_replicate_do.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/rpl_rewrite_db.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/rpl_timezone.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/symlink.result:
        Use MYSQLTEST_VARDIR
      mysql-test/r/trigger.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/view.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/r/warnings.result:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/backup-master.sh:
        Use MYSQLTEST_VARDIR
      mysql-test/t/backup.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/blackhole.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/ctype_ucs_binlog.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/im_daemon_life_cycle-im.opt:
        Use MYSQLTEST_VARDIR
      mysql-test/t/im_options_set.imtest:
        Use MYSQLTEST_VARDIR
      mysql-test/t/im_options_unset.imtest:
        Use MYSQLTEST_VARDIR
      mysql-test/t/loaddata.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/myisam.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/mysqlbinlog.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/mysqlbinlog2.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/mysqldump.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/mysqltest.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/ndb_autodiscover.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/outfile.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/query_cache.test:
        Add missing drop function
      mysql-test/t/repair.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl000001.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/rpl000004.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/rpl000009.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl000015-slave.sh:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl000017-slave.sh:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_EE_error.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_charset.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_drop_db.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_flush_log_loop-master.opt:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_flush_log_loop-master.sh:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_flush_log_loop-slave.opt:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_flush_log_loop-slave.sh:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_innodb.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/rpl_loaddata.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/rpl_loaddata_rule_m.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/rpl_loaddata_rule_s.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/rpl_loaddatalocal.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_log.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/rpl_misc_functions-slave.sh:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_misc_functions.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_replicate_do.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/rpl_rewrite_db.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/rpl_rotate_logs-slave.sh:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_rotate_logs.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/rpl_timezone.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/show_check.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/sp-destruct.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/symlink.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/temp_table-master.opt:
        Use MYSQLTEST_VARDIR
      mysql-test/t/trigger-compat.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/trigger-grant.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/trigger.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/type_varchar.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/user_var-binlog.test:
        Use MYSQLTEST_VARDIR
      mysql-test/t/view.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/t/warnings.test:
        Use "../std_data_ln" to find std_data files
      mysql-test/include/sourced.inc:
        New BitKeeper file ``mysql-test/include/sourced.inc''
      mysql-test/include/sourced1.inc:
        New BitKeeper file ``mysql-test/include/sourced1.inc''
      219af34a
  11. 23 Jan, 2006 1 commit
    • unknown's avatar
      Fixes about the embedded-server in 5.1 · 82fdad0c
      unknown authored
      libmysqld/lib_sql.cc:
        logger initialization added
      mysql-test/mysql-test-run.pl:
        ndbcluster and ssl disabled in embedded server
      mysql-test/mysql-test-run.sh:
        ndbcluster disabled in embedded server
      mysql-test/r/mysqltest.result:
        result fixed
      mysql-test/r/sp_notembedded.result:
        result fixed
      mysql-test/t/log_tables.test:
        test disabled in embedded server
      mysql-test/t/sp_notembedded.test:
        test fixed
      82fdad0c
  12. 17 Jan, 2006 1 commit
  13. 12 Jan, 2006 1 commit
    • unknown's avatar
      wl2325 wl2324 · 551f74f0
      unknown authored
      mysql-test/include/have_ndb_extra.inc:
        New BitKeeper file ``mysql-test/include/have_ndb_extra.inc''
      mysql-test/include/not_ndb.inc:
        New BitKeeper file ``mysql-test/include/not_ndb.inc''
      mysql-test/r/have_ndb_extra.require:
        New BitKeeper file ``mysql-test/r/have_ndb_extra.require''
      mysql-test/r/ndb_alter_table_row.result:
        New BitKeeper file ``mysql-test/r/ndb_alter_table_row.result''
      mysql-test/r/ndb_alter_table_stm.result:
        New BitKeeper file ``mysql-test/r/ndb_alter_table_stm.result''
      mysql-test/r/ndb_binlog_basic.result:
        New BitKeeper file ``mysql-test/r/ndb_binlog_basic.result''
      mysql-test/r/ndb_binlog_multi.result:
        New BitKeeper file ``mysql-test/r/ndb_binlog_multi.result''
      mysql-test/r/ndb_multi_row.result:
        New BitKeeper file ``mysql-test/r/ndb_multi_row.result''
      mysql-test/r/not_ndb.require:
        New BitKeeper file ``mysql-test/r/not_ndb.require''
      mysql-test/r/rpl_ndb_bank.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_bank.result''
      mysql-test/r/rpl_ndb_basic.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_basic.result''
      mysql-test/r/rpl_ndb_disk.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_disk.result''
      mysql-test/r/rpl_ndb_idempotent.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_idempotent.result''
      mysql-test/r/rpl_ndb_load.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_load.result''
      mysql-test/r/rpl_ndb_multi.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_multi.result''
      mysql-test/r/rpl_ndb_sync.result:
        New BitKeeper file ``mysql-test/r/rpl_ndb_sync.result''
      mysql-test/r/rpl_row_basic_7ndb.result:
        New BitKeeper file ``mysql-test/r/rpl_row_basic_7ndb.result''
      mysql-test/t/ndb_alter_table_row.test:
        New BitKeeper file ``mysql-test/t/ndb_alter_table_row.test''
      mysql-test/t/ndb_alter_table_stm.test:
        New BitKeeper file ``mysql-test/t/ndb_alter_table_stm.test''
      mysql-test/t/ndb_binlog_basic.test:
        New BitKeeper file ``mysql-test/t/ndb_binlog_basic.test''
      mysql-test/t/ndb_binlog_multi.test:
        New BitKeeper file ``mysql-test/t/ndb_binlog_multi.test''
      mysql-test/t/ndb_multi_row.test:
        New BitKeeper file ``mysql-test/t/ndb_multi_row.test''
      mysql-test/t/rpl_ndb_bank.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_bank.test''
      mysql-test/t/rpl_ndb_basic.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_basic.test''
      mysql-test/t/rpl_ndb_disk.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_disk.test''
      mysql-test/t/rpl_ndb_idempotent.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_idempotent.test''
      mysql-test/t/rpl_ndb_load.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_load.test''
      mysql-test/t/rpl_ndb_multi.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_multi.test''
      mysql-test/t/rpl_ndb_sync.test:
        New BitKeeper file ``mysql-test/t/rpl_ndb_sync.test''
      mysql-test/t/rpl_row_basic_7ndb.test:
        New BitKeeper file ``mysql-test/t/rpl_row_basic_7ndb.test''
      sql/ha_ndbcluster_binlog.cc:
        New BitKeeper file ``sql/ha_ndbcluster_binlog.cc''
      sql/ha_ndbcluster_binlog.h:
        New BitKeeper file ``sql/ha_ndbcluster_binlog.h''
      sql/ha_ndbcluster_tables.h:
        New BitKeeper file ``sql/ha_ndbcluster_tables.h''
      sql/rpl_injector.cc:
        New BitKeeper file ``sql/rpl_injector.cc''
      sql/rpl_injector.h:
        New BitKeeper file ``sql/rpl_injector.h''
      storage/ndb/include/kernel/signaldata/DihFragCount.hpp:
        New BitKeeper file ``storage/ndb/include/kernel/signaldata/DihFragCount.hpp''
      551f74f0
  14. 11 Jan, 2006 1 commit
    • unknown's avatar
      Fix problem with strange printout of line numbers, detected on aix52, but... · 17815a33
      unknown authored
      Fix problem with strange printout of line numbers, detected on aix52, but existing on all platforms, just being masked by init of vars to zero.
      
      
      client/mysqltest.c:
        Remove lineno_stack, instead use the already existing file_stack and add a new variable lineno to keep track of what line in the file we are at.
      mysql-test/r/mysqltest.result:
        Correct test result, "At line 1" should be printed
      17815a33
  15. 10 Jan, 2006 1 commit
  16. 29 Dec, 2005 1 commit
  17. 20 Dec, 2005 1 commit
    • unknown's avatar
      Store the each column from a multi column result set into a separate variable. · 8dd68b7f
      unknown authored
      client/mysqltest.c:
        Update var_query_set to store every column from a query into a separate variable.
        The whole result will still be stored as tab separated string in the var that let points at.
      mysql-test/r/mysqltest.result:
        Add test results
      mysql-test/t/mysqltest.test:
        Add tests for "one variable for each column" from let.
      8dd68b7f
  18. 13 Dec, 2005 2 commits
    • unknown's avatar
      Remove confusing printouts from expected to fail "system" commands · 1034d941
      unknown authored
      client/mysqltest.c:
        Add missing DBUG_VOID_RETURN
        Log failure to run "system" into result log 
        Add DBUG_PRINT for the sleep value used in do_sleep
      mysql-test/r/mysqltest.result:
        Update test results
      mysql-test/t/mysqltest.test:
        Mask outpu from failed system command
      1034d941
    • unknown's avatar
      Fix tests after merge · 3a9307fd
      unknown authored
      Straighten out and comment behaviour for --require and --result in run_query
      
      
      client/mysqltest.c:
         If --require or --result has been provided for a query command->record_file file be set.
        In that case it should either dump to file if recording or check with content in file if running.
      mysql-test/r/mysqltest.result:
        Fix up tests and results after merge
      mysql-test/t/mysqltest.test:
        Fix up tests and results after merge
      3a9307fd
  19. 06 Dec, 2005 1 commit
    • unknown's avatar
      WL#2930 · d4309e56
      unknown authored
      - Updated after review
      
      
      client/mysqltest.c:
        Remove the mysterious 1024, sed when calculating max_length for bind columns
        Change affected_rows variables to use ulonglong
        A little more fiddling with warnings in ps mode needed
        Add temporary workaround for bug#15518
        Use ulong instead of "unsigned long"
        Print verbose_msg when failure to create view or sp
        Updated cheks for "zero size result file" and "no queries executed but result file found"
        The test must produce some output
      mysql-test/include/have_multi_ndb.inc:
        Use --require <result_file> instead of @r <result_file>
      mysql-test/r/mysqltest.result:
        Update resulfiles
      mysql-test/t/init_file.test:
        Add "echo" command so that test produces output.
      mysql-test/t/mysql_client_test.test:
        Add "echo" command so that test produces output.
      mysql-test/t/mysqltest.test:
        Added new test case for "zero size resul file"
        Added new test case for "no output"
        Make sure all generated sql files are put in var/tmp dir
      mysql-test/r/init_file.result:
        New BitKeeper file ``mysql-test/r/init_file.result''
      mysql-test/r/mysql_client_test.result:
        New BitKeeper file ``mysql-test/r/mysql_client_test.result''
      d4309e56
  20. 05 Dec, 2005 1 commit
  21. 02 Dec, 2005 1 commit
  22. 31 Oct, 2005 1 commit
    • unknown's avatar
      WL#2930 Adding view and cursor 'protocols' to mysqltest · 62b0ba25
      unknown authored
       - Cleanup of mysqltest.c before extending it
      
      
      client/mysqltest.c:
        Cleanup functions run_query_* before adding new functionality.
        Break out common functions used in both run_query_stmt and run_query_normal
        Move functionality for all run_query_* calls into run_query
        Since the normal way of handling an unepected error is to call die(which will never return), remove all return values from functions that does not return. 
        Add comments.
        Remove unused vars.
        Cleanup...
        Removed oboslete syntax @<file_name>, "require" or "result" should be used.
      mysql-test/include/master-slave.inc:
        remove obsolete syntax @, use "require" command
      mysql-test/include/ps_query.inc:
        Remove this comment, mysqltest will now produce output. Old mysqltest didn't return any output since command starting with @ was treated as a require. Uggh.
      mysql-test/r/mysqltest.result:
        Update test result
      mysql-test/r/ps_2myisam.result:
        Update test result
      mysql-test/r/ps_3innodb.result:
        Update test result
      mysql-test/r/ps_4heap.result:
        Update test result
      mysql-test/r/ps_5merge.result:
        Update test result
      mysql-test/r/ps_6bdb.result:
        Update test result
      mysql-test/r/ps_7ndb.result:
        Update test result
      mysql-test/t/alias.test:
        Remove --disable/enable_ps_protocol, only used to mask bugs in mysqltest
      mysql-test/t/group_by.test:
        Remove --disable/enable_ps_protocol, only used to mask bugs in mysqltest
      mysql-test/t/mysqltest.test:
        Add test for "Missing delimiter until eof"
      mysql-test/t/union.test:
        Remove --disable/enable_ps_protocol, "select found_rows" works  with ps_protocol now!
      62b0ba25
  23. 12 Oct, 2005 1 commit
    • unknown's avatar
      Always test ssl and compress · 32f2ad06
      unknown authored
       - Updated after review
      
      
      client/mysqltest.c:
        Updated after review.
        Fix "connect" command to take SSL and/or COMPRESS as options instead of enable/disable_ssl and enable/disable_compress
        Commented do_connect, added test cases etc.
        Fix safe_get_param to make it possible to call it once for every argument without having any checks inbetween.
        Make a copy for query->first_argument  since safe_get_param will modify query string. Now connect works inside a while loop as well.
      mysql-test/mysql-test-run.pl:
        Updated after review
      mysql-test/r/connect.result:
        Enable test that was previolsy disabled because of "no error handling" in connect
      mysql-test/r/mysqltest.result:
        Added tests for "connect"
      mysql-test/t/compress.test:
        Updated after review, use the option argument to connect
      mysql-test/t/connect.test:
        Enable test that was previolsy disabled because of "no error handling" in connect
        Now it's possible to use "--error" before connect, so let's use it.
      mysql-test/t/information_schema.test:
        Connection user4 was already used
      mysql-test/t/myisam.test:
        Disconnect con1 so the name can be reused
      mysql-test/t/mysqltest.test:
        Added tests for "connect"
      mysql-test/t/openssl_1.test:
        Updated after review, use the option argument to connect
      mysql-test/t/sp-security.test:
        Disconnect user1 connection so the name can be reused
      mysql-test/t/ssl.test:
        Updated after review, use the option argument to connect
      mysql-test/t/ssl_compress.test:
        Updated after review, use the option argument to connect
      sql/mysqld.cc:
        Updated after review, Compression variable is always available
      sql/sql_show.cc:
        Updated after review, Compression variable is always available
      sql/structs.h:
        Updated after review, Compression variable is always available
      32f2ad06
  24. 21 Sep, 2005 1 commit
    • unknown's avatar
      Bug #13231 mysqltest: fails to dectect when mysql_next_result fails · 83016f14
      unknown authored
       - Added functionality to check errors returned from mysql_next_result
       - Exit from mysqltest when and unexpected error occurs.
       - The above fixes reveal problems with rpl000009, sp-error and query_cache-
       - Fix sp-error by adding an expected error
       - Fix rpl000009 by not sending "ok" from mysql_create_db when called with silent flag from load_master_data
       - Fix query_cache in separate patch
      
      
      client/mysqltest.c:
        Check and handle error after mysql_next_result
        Change several verbose_msg to die so that the error is properly reported
        Clean up of error handling code in run_query_stmt, check all errors and use common
        function handle_error.
      mysql-test/r/mysqltest.result:
        mysqltest now dies when a query fails with wrong errno
      mysql-test/r/sp-error.result:
        Update test result to match the expected error from calling the sp closing a cursor that is not open.
      mysql-test/t/sp-error.test:
        Add missing --error 1326 before call to sp that closes a already closed cursor.
        Add test for bug9367
      sql/sql_db.cc:
        Don't send ok in mysql_create_db if silent flag is set.
      83016f14
  25. 20 Sep, 2005 1 commit
    • unknown's avatar
      BUG#12959 mysqltest crashes if testcase passed with -x option · 35083ae3
      unknown authored
       - Enable testcases after help from Serg 
      
      
      client/mysqltest.c:
        Dump output to stdout if no result file is specified
        Don't print verbose_msg when command fails whith expected error
      mysql-test/mysql-test-run.pl:
        Don't add all args to the MYSQL_TEST environment variable.
      mysql-test/r/mysqltest.result:
        Add test for mysqltest -x
      mysql-test/t/mysqltest.test:
        Add test for mysqltest -x
      35083ae3
  26. 07 Sep, 2005 1 commit
  27. 06 Sep, 2005 1 commit
    • unknown's avatar
      Detect comment with command using extra delimiter · 44bbcdff
      unknown authored
      mysql-test/include/have_lowercase0.inc:
        Remove extra ; at end of command(causing it to be skipped)
      mysql-test/r/mysqltest.result:
        Update test results
      mysql-test/t/mysqltest.test:
        Add test to detect "comment with command" with extra ; delimiter
        Fix extra ; delimiter
      44bbcdff
  28. 05 Sep, 2005 1 commit
    • unknown's avatar
      BUG#12984 mysqltest.test: different output from "exec NonExistsinfComamdn" · 00789501
      unknown authored
      mysql-test/r/mysqltest.result:
        Disable test for failing --exec and --system since output can't be piped to /dev/null on all platforms
      mysql-test/t/mysqltest.test:
        Disable test for failing --exec and --system since output can't be piped to /dev/null on all platforms
        Avoid "echo -e" by using a temporary .sql file for tests that require more than one line.
      00789501
  29. 02 Sep, 2005 1 commit
  30. 01 Sep, 2005 2 commits
    • unknown's avatar
      Bug #3131 mysqltest fails on $2=$1 assignment in test · c7cc1ca0
      unknown authored
      client/mysqltest.c:
        Fix function var_copy to make it possible to assign one variable to another. 
        ex: let $1=$2
      mysql-test/r/mysqltest.result:
        Update test result
      mysql-test/t/mysqltest.test:
        Add test cases for variable to variable assignment
      c7cc1ca0
    • unknown's avatar
      Bug #12471 mysqltest, --error within loop affects wrong statement · 09864f91
      unknown authored
       - Move clearing of expected errors
      
      
      client/mysqltest.c:
        Move clear of expected errors to the query loop so that the expected error is reset even when the query is retrieved from the q_lines cache.
      mysql-test/r/mysqltest.result:
        Update test results
      mysql-test/t/mysqltest.test:
        Add test for bug#12471
      09864f91
  31. 31 Aug, 2005 2 commits
    • unknown's avatar
      Remove syntax !$<err_no> to set an expected error code · 9e9ba58c
      unknown authored
      Use !<err_no> instead
      
      
      client/mysqltest.c:
        Remove syntax !$<err_no> to set an expected error code
      mysql-test/r/mysqltest.result:
        Update test result
      mysql-test/t/mysqltest.test:
        Uncomment tests for the deprecated syntax
      9e9ba58c
    • unknown's avatar
      BUG#11316: mysqltest, problems when assigning value with '#' to $variable · 59bfb47b
      unknown authored
       - Add stricter checking of syntax in mysqltest
      
      
      client/mysqltest.c:
        Stricter checking of syntax in mysqltest.
      mysql-test/r/mysqltest.result:
        Update test results
      mysql-test/t/create.test:
        Remove extra ;
      mysql-test/t/create_select_tmp.test:
        Remove extra ;
      mysql-test/t/drop.test:
        Remove extra ;
      mysql-test/t/flush.test:
        Remove extra ;
      mysql-test/t/handler.test:
        Remove extra ;
      mysql-test/t/innodb.test:
        Remove extra ;
      mysql-test/t/mysqltest.test:
        Add more tests for replace, replace_columns, comments with commands and sync_with_master
      mysql-test/t/rpl000001.test:
        Remove extra ;
      mysql-test/t/rpl_EE_error.test:
        Remove extra ;
      mysql-test/t/rpl_drop.test:
        Remove extra ;
      mysql-test/t/rpl_error_ignored_table.test:
        Remove extra ;
      mysql-test/t/rpl_loaddata.test:
        Remove extra ;
      59bfb47b
  32. 16 Aug, 2005 1 commit
  33. 31 Jul, 2005 1 commit
    • unknown's avatar
      Fixes during review of new pushed code · f5589f21
      unknown authored
      Change bool in C code to my_bool
      Added to mysqltest --enable_parsning and --disable_parsing to avoid to have to comment parts of tests
      Added comparison of LEX_STRING's and use this to compare file types for view and trigger files.
      
      
      client/client_priv.h:
        Added OPT_TRIGGERS (to get rid of compiler warning)
      client/mysql.cc:
        Added cast to get rid of compiler warning
      client/mysqldump.c:
        Added OPT_TRIGGERS (to get rid of compiler warning)
        Abort if we can't write to outfile (even if --ignore-errors is given)
      client/mysqltest.c:
        Added --enable_parsning and --disable_parsing to avoid to have to comment parts of tests
      include/my_sys.h:
        Make my_progname const
      include/my_time.h:
        Avoid using 'bool' in C programs
      mysql-test/lib/init_db.sql:
        Align with mysql_create_system_tables
        (Ideally this file should be auto-generated from the above script)
      mysql-test/r/mysqltest.result:
        Test for --enable_parsing
      mysql-test/r/variables.result:
        Update results after fix for overflow checking of max_heap_table_size
      mysql-test/t/information_schema.test:
        USe --enable/disable parsing instead of comments
      mysql-test/t/mysqltest.test:
        Test for --enable_parsing
      mysql-test/t/sp.test:
        USe --enable/disable parsing instead of comments
      mysql-test/t/variables.test:
        Portability fix for 64 bit systems
      mysql-test/t/view.test:
        USe --enable/disable parsing instead of comments
      mysys/my_init.c:
        May my_progname const
      mysys/my_static.c:
        May my_progname const
      mysys/thr_lock.c:
        Remove not needed casts
      sql-common/my_time.c:
        Change bool -> my_bool as bool is not portable in C programs
      sql/field.cc:
        Test number_to_datetime() for -1 instead of < 0 (Safety fix)
        New prototype for TIME_to_timestamp()
      sql/item.h:
        Don't have prototypes for both uint32 and ulong as these 'may' be the same thing
      sql/item_timefunc.cc:
        New prototype for TIME_to_timestamp()
      sql/log.cc:
        Remove compiler warnings
      sql/mysql_priv.h:
        New prototype for TIME_to_timestamp()
        Added function for comparing LEX_STRING
      sql/set_var.cc:
        Added overflow checking when setting ulong variable
      sql/sql_base.cc:
        Added function is_equal()
        Changed strncmp -> is_equal() as strncmp() to not match "V" (instead of "VIEW")
      sql/sql_class.cc:
        Added comment
      sql/sql_select.cc:
        Portability fixes
        After review fixes
      sql/sql_trigger.cc:
        Use 'tables_alias_charset' for comparing database name
        Use 'is_equal()' to compare file type. (Old code didn't do the comparison correctly)
      sql/sql_view.cc:
        Use 'is_equal()' to compare file type. (Old code didn't do the comparison correctly)
      sql/time.cc:
        New prototype for TIME_to_timestamp() to allow easyer mapping to C function
      sql/tztime.cc:
        bool -> my_bool (to allow calling C code from C++ code)
      sql/tztime.h:
        bool -> my_bool (to allow calling C code from C++ code)
      f5589f21
  34. 15 Jul, 2005 1 commit
    • unknown's avatar
      BUG#11316 mysqltest, problems when assigning value with '#' to $variable · 999eaffc
      unknown authored
       - Fixed problem, only detect comment if the # is on start of line AND starting line of the current command.
       - Wrote tests for most of the mysqltest commands, added stricter checking of correct syntax.
      
      
      client/mysqltest.c:
        Updated mysql test to do stricter checking of syntax. For example when the number 
        of arguments to a command is known, everything else is "junk" => die. 
        Better checking of argument types.
        Added better debug printouts.
        Added improved printouts when wrong syntax is detected.
        Fix two bugs where mysqltest could not detect end of comamnd properly, as described in bug#11316
        Fix segfault when performing too many source commands.
        Fix segfault when doing too many while loop levels.
        Add printout of line number in die
        Remove lineno and \n in all strings passed to die function.
        Decrese BLOCK_STACK_DEPTH from 32 to 16, does any test use more than 1 level?
      mysql-test/mysql-test-run.pl:
        export MYSQL_TEST environment variable, used from msyqltest.test
      mysql-test/mysql-test-run.sh:
        export MYSQL_TEST environment variable, used from msyqltest.test
      mysql-test/r/mysqltest.result:
        Updated test results
      mysql-test/r/rpl_flush_log_loop.result:
        Updated test result.
        Approved by lars
      mysql-test/t/innodb-deadlock.test:
        Correct wrong syntax
        Superfluos ;
      mysql-test/t/innodb-lock.test:
        Correct wrong syntax
        Superfluos ;
      mysql-test/t/mysqltest.test:
        Add several new tests  for mysqltest.
        Foxus on detecting wrong syntax in test files.
        Use exec with expected error to execute test scripts that will kill mysqltest
        Change some negative test that were previously commented out to use the above method.
      mysql-test/t/ndb_autodiscover2.test:
        Correct wrong syntax
        Superfluos ;
      mysql-test/t/rpl_change_master.test:
        Correct wrong syntax
        Superfluos ;
      mysql-test/t/rpl_deadlock.test:
        Correct wrong syntax
        Superfluos ;
      mysql-test/t/rpl_drop_temp.test:
        Correct wrong syntax
        Superfluos ;
      mysql-test/t/rpl_flush_log_loop.test:
        Fix after detecting wrong syntax, missing ;
        Discussed with lars.
      mysql-test/t/rpl_insert_id.test:
        Missing ;
      mysql-test/t/rpl_rotate_logs.test:
        Correct wrong syntax
        Superfluos ;
      mysql-test/t/rpl_until.test:
        Missing delimiter
      mysql-test/include/mysqltest_while.inc:
        New file to test too many while levels
      999eaffc
  35. 16 Jun, 2005 1 commit
    • unknown's avatar
      Post review fixes · 5424808c
      unknown authored
      mysql-test/include/show_msg80.inc:
        Post review fixes: improved description
      mysql-test/r/mysqltest.result:
        Updated result
      mysql-test/t/mysqltest.test:
        one sub testcase added
      5424808c
  36. 15 Jun, 2005 1 commit
    • unknown's avatar
      Improvement of the auxiliary routines include/show_msg*.inc · 265d9f54
      unknown authored
      - replace @message by $message
        --> The annoying protocol line "SET @message= <value>" will disappear.
      - extended description
      - some examples added
      
      
      mysql-test/include/show_msg.inc:
        replace @message by $message
      mysql-test/include/show_msg80.inc:
        - replace @message by $message
        - extended description
        - some examples added
      mysql-test/r/mysqltest.result:
        updated results
      mysql-test/t/mysqltest.test:
        sub testcases for the show_msg*.inc scripts modified, because the script properties are altered
      265d9f54