1. 26 Feb, 2007 1 commit
    • unknown's avatar
      Bug#20166 mysql-test-run.pl does not test system privilege tables creation · 5d4e0417
      unknown authored
       - Use mysql_system_tables.sql to create MySQL system tables in
         all places where we create them(mysql_install_db, mysql-test-run-pl
         and mysql_fix_privilege_tables.sql)
      
      
      BitKeeper/deleted/.del-init_db.sql:
        Rename: mysql-test/init_db.sql -> BitKeeper/deleted/.del-init_db.sql
      BitKeeper/deleted/.del-init_db.sql~a77d572c39d5a1f8:
        Rename: mysql-test/lib/init_db.sql -> BitKeeper/deleted/.del-init_db.sql~a77d572c39d5a1f8
      BitKeeper/deleted/.del-mysql_create_system_tables.sh:
        Rename: scripts/mysql_create_system_tables.sh -> BitKeeper/deleted/.del-mysql_create_system_tables.sh
      BitKeeper/etc/ignore:
        Added scripts/mysql_fix_privilege_tables.sql to the ignore list
      mysql-test/Makefile.am:
        lib/init_db.sql has been removed
      mysql-test/mysql-test-run.pl:
        - Build var/tmp/bootstrap.sql from mysql_system_tables.sql,
        mysql_test_data_timezone.sql and fill_help_tables.sql and use
        it when bootsraping the system tables to use during test.
      mysql-test/r/create.result:
        Update result file
      mysql-test/r/derived.result:
        Update result file
      mysql-test/r/join.result:
        Update result file
      mysql-test/r/mysql_upgrade.result:
        Update result file
      mysql-test/r/sp-security.result:
        Update result file
      mysql-test/t/create.test:
        Add user mysqltest_1 before trying to connect as that user - no
        anon users by default anymore
      mysql-test/t/derived.test:
        Add user mysqltest_1 before trying to connect as that user - no
        anon users by default anymore
      mysql-test/t/grant2.test:
        Add anonymous users for part of thes that need it.
      mysql-test/t/grant_cache.test:
        Add anonymous users for part of thes that need it.
      mysql-test/t/init_connect.test:
        Add anonymous users for part of thes that need it.
      mysql-test/t/lock_multi.test:
        Add anonymous users for part of thes that need it.
      mysql-test/t/ndb_basic.test:
        Connect as "root", blank user will take currently logged in
        username
      mysql-test/t/ndb_index_ordered.test:
        Connect as "root", blank user will take currently logged in
        username
      mysql-test/t/ndb_multi.test:
        Connect as "root", blank user will take currently logged in
        username
      mysql-test/t/overflow.test:
        Connect as root - no anonymous users by default anymore
      mysql-test/t/rpl_temporary.test:
        Add anonymous users for the test
      mysql-test/t/xa.test:
        Connect as "root", blank user wil pick currently logged in user
      scripts/Makefile.am:
        Remove mysql_create_system_tables.sh
        Add mysql_system_tables.sql and mysql_test_data_timezone.sql
        Build mysql_fix_privilege_tables.sql from mysql_system_tables.sql
        and mysql_fix_privilege_tables.sql.in
      scripts/mysql_fix_privilege_tables.sh:
        Update message describing what the script does
      scripts/mysql_fix_privilege_tables.sql.in:
        Remove the part that creates system tables as that will be added to
        mysql_fix_privileg_tables.sql from mysql_system_tables.sql
        Change all comments to use #
      scripts/mysql_install_db.sh:
        Use mysql_system_tables.sql to create the MySQL system tables
        Update comments and indentation
        Add more descriptive comments about --windows switch
        Reduce number of hardcoded names for the SQL files the script
        looks for
      mysql-test/include/add_anonymous_users.inc:
        New BitKeeper file ``mysql-test/include/add_anonymous_users.inc''
      mysql-test/include/delete_anonymous_users.inc:
        New BitKeeper file ``mysql-test/include/delete_anonymous_users.inc''
      scripts/mysql_system_tables.sql:
        New BitKeeper file ``scripts/mysql_system_tables.sql''
      scripts/mysql_test_data_timezone.sql:
        New BitKeeper file ``scripts/mysql_test_data_timezone.sql''
      5d4e0417
  2. 20 Feb, 2007 2 commits
    • unknown's avatar
      Bug#20166 mysql-test-run.pl does not test system privilege tables creation · 629b9cf8
      unknown authored
       - Part 2, add @@hostname system variable
      
      
      mysql-test/r/variables.result:
        Add testcase for @@hostname
      mysql-test/t/variables.test:
        Add testcase for @@hostname
      sql/log.cc:
        Use pidfile_name as base when generating the default log name
      sql/mysqld.cc:
        Init "glob_hostname" to that of hostname, fallback to "localhost"
        if 'gethostname' should fail.
        Init "pidfile_name" to hostname.pid and fallback to "mysql.pid" if
        'gethostname' should fail
      sql/set_var.cc:
        Add new system variable "hostname"
      629b9cf8
    • unknown's avatar
      Bug#20166 mysql-test-run.pl does not test system privilege tables creation · aafe189a
      unknown authored
       - Add test of bootstrap mode
       - Make mysqld return error if bootstrap failed  
      
      
      mysql-test/mysql-test-run.pl:
        Remove options --skip-grant-tables as that is always
        turned on by --bootstrap
        Remove options --console as that does not affect --bootstrap mode
        at all
        Add environment variable MYSQLD_BOOTSTRAP_CMD containing path 
        to mysqld and the arguments used for bootstrap
      sql/sql_parse.cc:
        Abort bootstrap if execution fails
        Report error to stderr/log
      mysql-test/r/bootstrap.result:
        New BitKeeper file ``mysql-test/r/bootstrap.result''
      mysql-test/t/bootstrap.test:
        New BitKeeper file ``mysql-test/t/bootstrap.test''
      aafe189a
  3. 19 Feb, 2007 5 commits
  4. 16 Feb, 2007 6 commits
    • unknown's avatar
      Use " instead of ' to avoid win problem with ' · 2f7a4de6
      unknown authored
      2f7a4de6
    • unknown's avatar
      Add echo.c to be built on Windows · 6660006b
      unknown authored
      6660006b
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-4.1-maint · 2214c207
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
      
      
      client/mysqltest.c:
        Auto merged
      mysql-test/lib/mtr_misc.pl:
        Auto merged
      mysql-test/mysql-test-run.pl:
        Auto merged
      2214c207
    • unknown's avatar
      Merge 192.168.0.10:mysql/mysql-4.1-maint · c6e1de4c
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-4.1-maint
      
      
      client/mysqltest.c:
        Auto merged
      c6e1de4c
    • unknown's avatar
      Merge pilot.blaudden:/home/msvensson/mysql/mysql-4.1-maint · 89cbc572
      unknown authored
      into  pilot.blaudden:/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/r/order_by.result:
        Auto merged
      sql/item.cc:
        Auto merged
      sql/item_cmpfunc.cc:
        Auto merged
      sql/item_cmpfunc.h:
        Auto merged
      sql/sql_select.cc:
        Auto merged
      mysql-test/t/order_by.test:
        SCCS merged
      89cbc572
    • unknown's avatar
      Workaround for problem where cygwin's bash/sh randomly fails with error 128 which · a843a05f
      unknown authored
      mainly occurs on win2003 64bit.
       - Execute "exec" commands directly with cmd.exe and replace "--exec echo ..." with "--exec .\echo.exe ..." 
      
      
      client/mysqltest.c:
        Workaround the problem with "echo" in windows not behaving like "echo" in Unix.
        - Replace "--exec echo ..." with "--exec <path to mysqltest>\echo.exe" thus forcing
          use of our own echo implementation which baheves like on Unix.
        - The above change makes it possible to remove the need to execute all --exec's
          inside cygwin. Add ifdefs to only use use cygwin's bash conditionally
      mysql-test/lib/mtr_misc.pl:
        Add function for converting to the OS's native format
      mysql-test/mysql-test-run.pl:
        Convert path to executables to "windows native" (c:\<path>\) instead of "mixed"(c:/<path>) mode
        necessary for pipes and redirects to work properly in cmd.exe
      client/echo.c:
        New BitKeeper file ``client/echo.c''
      a843a05f
  5. 15 Feb, 2007 6 commits
  6. 14 Feb, 2007 9 commits
    • unknown's avatar
      Add check of format specifiers in error message strings · 7ca99d79
      unknown authored
      Update error message text accordingly to be equal between all translations
      
      
      extra/comp_err.c:
        Add check of format specifiers in error message strings
      sql/share/errmsg.txt:
        Update error messages after checks
      7ca99d79
    • unknown's avatar
      Merge calliope.local.cmiller:/Volumes/Source/src/mysql-4.1-maint--bug25126 · 5097c6fc
      unknown authored
      into  calliope.local.cmiller:/Volumes/Source/src/mysql-4.1-maint
      
      
      sql/item.cc:
        Auto merged
      mysql-test/r/order_by.result:
        Manual merge.
      mysql-test/t/order_by.test:
        Manual merge.
      5097c6fc
    • unknown's avatar
      Merge calliope.local.cmiller:/Volumes/Source/src/mysql-4.1-maint--bug25126 · 48be0a2f
      unknown authored
      into  calliope.local.cmiller:/Volumes/Source/src/mysql-5.0-maint
      
      
      sql/item.cc:
        Auto merged
      mysql-test/r/order_by.result:
        Manual merge.
      mysql-test/t/order_by.test:
        Manual merge.
      48be0a2f
    • unknown's avatar
      Merge pilot.mysql.com:/home/msvensson/mysql/mysql-4.1-maint · 1d549b95
      unknown authored
      into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
      
      
      client/mysqltest.c:
        Auto merged
      1d549b95
    • unknown's avatar
      Use my_vsnprintf instead of vsnprintf · 557f6169
      unknown authored
      557f6169
    • unknown's avatar
      Merge bk-internal.mysql.com:/home/bk/mysql-5.0 · 9d66be72
      unknown authored
      into  zippy.cornsilk.net:/home/cmiller/work/mysql/mysql-5.0-maint
      
      
      sql/mysql_priv.h:
        Auto merged
      9d66be72
    • unknown's avatar
      Merge pilot.mysql.com:/home/msvensson/mysql/bug18628/my50-bug18628 · 555aed64
      unknown authored
      into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
      
      
      mysql-test/mysql-test-run.pl:
        Auto merged
      sql/item_strfunc.cc:
        Auto merged
      sql/mysql_priv.h:
        Auto merged
      sql/mysqld.cc:
        Auto merged
      sql/set_var.cc:
        Auto merged
      sql/sql_class.cc:
        Auto merged
      555aed64
    • unknown's avatar
      Bug#18628 mysql-test-run: security problem(part1) · c4ae01e6
      unknown authored
       - Implement --secure-file-priv=<dir> option that limits
        "load_file", "LOAD DATA" and "SELECT .. INTO OUTFILE" to work 
        with files in specified dir.
       - Use above option for mysqld in mysql-test-run.pl 
      
      
      mysql-test/mysql-test-run.pl:
        Add usage of --secure-file-priv=vardir when starting mysqld
      mysql-test/r/loaddata.result:
        Update test result after adding test to check that secure-file-priv
        works for "load data" and "load_file"
      mysql-test/r/outfile.result:
        Update result
      mysql-test/r/query_cache.result:
        Can't load from outside of vardir anymore
      mysql-test/r/type_blob.result:
        Can't load from outside of vardir anymore
      mysql-test/t/loaddata.test:
        Update test result after adding test to check that secure-file-priv 
        works for "load data" and "load_file"
      mysql-test/t/outfile.test:
        Update test result after adding test to check that secure-file-priv
        works for "SELECT .. INTO OUTFILE"
      mysql-test/t/query_cache.test:
        Can't load from outside of vardir anymore
      mysql-test/t/type_blob.test:
        Can't load from outside of vardir anymore
      sql/item_strfunc.cc:
        Check that the path "load_file" uses for the file is within 
        what's specified with --secure-file-priv
      sql/mysql_priv.h:
        Add secure_file_priv
      sql/mysqld.cc:
        Add "--secure_file_priv"
      sql/set_var.cc:
        Add variable "secure_file_priv" to "show variables"
      sql/sql_class.cc:
        Check that the path "load_file" uses for the file is within 
        what's specified with --secure-file-priv
      sql/sql_class.h:
        Fix spelling error
      sql/sql_load.cc:
        Check that the path "load_file" uses for the file is within 
        what's specified with --secure-file-priv
      sql/share/errmsg.txt:
        Fix swedish error message for ER_OPTION_PREVENTS_STATMENT wich was hardcoded
        to --skip-grant-tables
      c4ae01e6
    • unknown's avatar
      Merge bk-internal:/home/bk/mysql-5.0-maint · 12d6c6eb
      unknown authored
      into  pilot.mysql.com:/home/msvensson/mysql/mysql-5.0-maint
      
      
      12d6c6eb
  7. 13 Feb, 2007 11 commits