diff options
author | unknown <monty@donna.mysql.com> | 2000-08-29 19:38:32 +0300 |
---|---|---|
committer | unknown <monty@donna.mysql.com> | 2000-08-29 19:38:32 +0300 |
commit | 463016ee2740fa00e56039bc0b1f8122019c982a (patch) | |
tree | 11ed770fa863e0b50af0b27d2c231817f7655ef8 /sql | |
parent | 3776743da299b4229fe12a36cd6a6c0f6fb6b1e6 (diff) | |
download | mariadb-git-463016ee2740fa00e56039bc0b1f8122019c982a.tar.gz |
Updates for release
BitKeeper/deleted/.del-mi_debug.c:
***MISSING WEAVE***
BUILD/compile-alpha-ccc:
Added thread safe libraries
Docs/manual.texi:
Added information about --log-slow-queries
Makefile.am:
Fix for thread safe libraries
client/mysql.cc:
Allow commands without ; on first line
myisam/Makefile.am:
Removed mi_debug.c
myisam/mi_check.c:
Removed compiler warnings
myisam/mi_dbug.c:
Extra debugging
myisammrg/myrg_rkey.c:
Removed compiler warnings
myisammrg/myrg_rnext.c:
Removed compiler warnings
myisammrg/myrg_rprev.c:
Removed compiler warnings
sql/mini_client.cc:
Removed compiler warnings
sql/mysqld.cc:
Updated help
sql/sql_parse.cc:
Fix permission checking for RENAME
tests/grant.pl:
Added more grant tests
tests/grant.res:
New results
Diffstat (limited to 'sql')
-rw-r--r-- | sql/mini_client.cc | 2 | ||||
-rw-r--r-- | sql/mysqld.cc | 6 | ||||
-rw-r--r-- | sql/sql_parse.cc | 11 |
3 files changed, 14 insertions, 5 deletions
diff --git a/sql/mini_client.cc b/sql/mini_client.cc index 90024f1ff47..5cd0fe2c680 100644 --- a/sql/mini_client.cc +++ b/sql/mini_client.cc @@ -232,7 +232,7 @@ static int mc_sock_connect(my_socket s, const struct sockaddr *name, return connect(s, (struct sockaddr*) name, namelen); #else int flags, res, s_err; - socklen_t s_err_size = sizeof(uint); + size_socket s_err_size = sizeof(uint); fd_set sfds; struct timeval tv; diff --git a/sql/mysqld.cc b/sql/mysqld.cc index 2a7a0575fad..37b03ef4a67 100644 --- a/sql/mysqld.cc +++ b/sql/mysqld.cc @@ -2460,11 +2460,15 @@ static void usage(void) --log-isam[=file] Log all isam changes to file\n\ --log-long-format Log some extra information to update log\n\ --low-priority-updates INSERT/DELETE/UPDATE has lower priority than selects\n\ + --log-slow-queries=[file]\n\ + Log slow queries to this log file\n\ --pid-file=path Pid file used by safe_mysqld\n\ -P, --port=... Port number to use for connection\n\ -n, --new Use very new possible 'unsafe' functions\n\ -o, --old-protocol Use the old (3.20) protocol\n\ - --one-thread Only use one thread (for debugging under Linux)\n\ + --one-thread Only use one thread (for debugging under Linux)\n"); + /* We have to break the string here because of VC++ limits */ + puts("\ -O, --set-variable var=option\n\ Give a variable an value. --help lists variables\n\ -Sg, --skip-grant-tables\n\ diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 97e67127fd0..3fb96857007 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -1137,16 +1137,21 @@ mysql_execute_command(void) goto error; for (table=tables ; table ; table=table->next->next) { - if (check_access(thd, ALTER_ACL, table->db, &table->grant.privilege) || + if (check_access(thd, ALTER_ACL | DROP_ACL, table->db, + &table->grant.privilege) || check_access(thd, INSERT_ACL | CREATE_ACL, table->next->db, &table->next->grant.privilege)) goto error; if (grant_option) { - if (check_grant(thd,ALTER_ACL,table) || + TABLE_LIST old_list,new_list; + old_list=table[0]; + new_list=table->next[0]; + old_list.next=new_list.next=0; + if (check_grant(thd,ALTER_ACL,&old_list) || (!test_all_bits(table->next->grant.privilege, INSERT_ACL | CREATE_ACL) && - check_grant(thd,INSERT_ACL | CREATE_ACL, table->next))) + check_grant(thd,INSERT_ACL | CREATE_ACL, &new_list))) goto error; } } |