summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
authorunknown <monty@hundin.mysql.fi>2002-08-08 12:05:18 +0300
committerunknown <monty@hundin.mysql.fi>2002-08-08 12:05:18 +0300
commitca1875f54033c5ea067ec3ec07b00375de6975d7 (patch)
treee4fd56548f8b7114557c187ad8aa70c1c5c26d52 /sql
parenta6b15fdd7682bffc2e197ac50e21332bb9bcf297 (diff)
parenta9c47d8cfc9d93dd93409c3d3681a4f726a456e5 (diff)
downloadmariadb-git-ca1875f54033c5ea067ec3ec07b00375de6975d7.tar.gz
merge
configure.in: Auto merged include/my_pthread.h: Auto merged sql/mysqld.cc: Auto merged sql/sql_parse.cc: Auto merged
Diffstat (limited to 'sql')
-rw-r--r--sql/mysqld.cc4
-rw-r--r--sql/sql_parse.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/sql/mysqld.cc b/sql/mysqld.cc
index be77f2bc7b3..ffa606272e3 100644
--- a/sql/mysqld.cc
+++ b/sql/mysqld.cc
@@ -3260,8 +3260,8 @@ struct my_option my_long_options[] =
#endif
{"temp-pool", OPT_TEMP_POOL,
"Using this option will cause most temporary files created to use a small set of names, rather than a unique name for each new file.",
- (gptr*) &use_temp_pool, (gptr*) &use_temp_pool, 0, GET_BOOL, NO_ARG, 0, 0,
- 0, 0, 0, 0},
+ (gptr*) &use_temp_pool, (gptr*) &use_temp_pool, 0, GET_BOOL, NO_ARG, 1,
+ 0, 0, 0, 0, 0},
{"tmpdir", 't', "Path for temporary files", (gptr*) &opt_mysql_tmpdir,
(gptr*) &opt_mysql_tmpdir, 0, GET_STR, REQUIRED_ARG, 0, 0, 0, 0, 0, 0},
{"transaction-isolation", OPT_TX_ISOLATION,
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 19b58ffbd25..14ed24ad3f7 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -1493,7 +1493,7 @@ mysql_execute_command(void)
/* Check that the first table has CREATE privilege */
TABLE_LIST *tmp_table_list=tables->next;
tables->next=0;
- bool error=check_grant(thd,CREATE_ACL,tables);
+ bool error=check_grant(thd, want_priv, tables);
tables->next=tmp_table_list;
if (error)
goto error;