diff options
author | unknown <monty@mysql.com> | 2004-03-12 01:10:22 +0200 |
---|---|---|
committer | unknown <monty@mysql.com> | 2004-03-12 01:10:22 +0200 |
commit | a1d9e1eec4ff8e9e53567bb3606bc4605a952375 (patch) | |
tree | 8427a74265a1dc0dc71464f4add7541489713f46 /mysql-test/install_test_db.sh | |
parent | c6d91e00bbd103e46d806b1b9aad1963f4cfe18c (diff) | |
download | mariadb-git-a1d9e1eec4ff8e9e53567bb3606bc4605a952375.tar.gz |
Ensure that install_test_db.sh script works with both 'make install' and 'make_binary_distribution' layouts
Abort if we can't allocate memory for table cache
Fix bug with multi-update-tables and BDB tables.
extra/replace.c:
Fix comments
mysql-test/install_test_db.sh:
Change internal option from -bin to --bin
Ensure that script works with both 'make install' and 'make_binary_distribution' layouts (Bug #3031)
mysql-test/mysql-test-run.sh:
Change internal option from -bin to --bin
sql/ha_berkeley.cc:
More debug
sql/mysql_priv.h:
Change table_cache_init to return error
sql/mysqld.cc:
Abort if we can't allocate memory for table cache. (Bug #3085)
Enable warnings by default
sql/sql_base.cc:
Change table_cache_init to return error
sql/sql_update.cc:
Fix bug with multi-update-tables and BDB tables. Bug #3098
Problem was that we didn't initialize BDB for calls to rnd_pos()
Diffstat (limited to 'mysql-test/install_test_db.sh')
-rw-r--r-- | mysql-test/install_test_db.sh | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/mysql-test/install_test_db.sh b/mysql-test/install_test_db.sh index dcac79a6cf4..f2ce448b273 100644 --- a/mysql-test/install_test_db.sh +++ b/mysql-test/install_test_db.sh @@ -5,9 +5,16 @@ # This scripts creates the privilege tables db, host, user, tables_priv, # columns_priv in the mysql database, as well as the func table. -if [ x$1 = x"-bin" ]; then +if [ x$1 = x"--bin" ]; then shift 1 - execdir=../bin + +# Check if it's a binary distribution or a 'make install' +if test -x ../libexec/mysqld + then + execdir=../libexec + else + execdir=../bin +fi bindir=../bin BINARY_DIST=1 fix_bin=mysql-test |