mirror of
https://github.com/MariaDB/server.git
synced 2025-01-29 02:05:57 +01:00
Further work on UNIONS
BitKeeper/etc/ignore: Added libmysqld/hash_filo.cc libmysqld/sql_unions.cc libmysqld/stacktrace.c sql/share/mysql to the ignore list sql/sql_parse.cc: Fixing some stuff for UNION's
This commit is contained in:
parent
cded0f915d
commit
9227621cce
2 changed files with 8 additions and 2 deletions
|
@ -364,3 +364,7 @@ support-files/mysql.server
|
|||
support-files/mysql.spec
|
||||
tags
|
||||
tmp/*
|
||||
libmysqld/hash_filo.cc
|
||||
libmysqld/sql_unions.cc
|
||||
libmysqld/stacktrace.c
|
||||
sql/share/mysql
|
||||
|
|
|
@ -47,7 +47,7 @@ static void mysql_init_query(THD *thd);
|
|||
static void remove_escape(char *name);
|
||||
static void refresh_status(void);
|
||||
static bool append_file_to_dir(char **filename_ptr, char *table_name);
|
||||
static inline int link_in_large_list_and_check_acl(THD *thd,LEX *lex,SQL_LIST *tables);
|
||||
static int link_in_large_list_and_check_acl(THD *thd,LEX *lex,SQL_LIST *tables);
|
||||
|
||||
const char *any_db="*any*"; // Special symbol for check_access
|
||||
|
||||
|
@ -2878,7 +2878,7 @@ TABLE_LIST *add_table_to_list(Table_ident *table, LEX_STRING *alias,
|
|||
DBUG_RETURN(ptr);
|
||||
}
|
||||
|
||||
static inline int link_in_large_list_and_check_acl(THD *thd,LEX *lex,SQL_LIST *tables)
|
||||
static int link_in_large_list_and_check_acl(THD *thd,LEX *lex,SQL_LIST *tables)
|
||||
{
|
||||
SELECT_LEX *sl; const char *current_db=thd->db ? thd->db : "";
|
||||
for (sl=&lex->select_lex;sl;sl=sl->next)
|
||||
|
@ -2904,6 +2904,8 @@ static inline int link_in_large_list_and_check_acl(THD *thd,LEX *lex,SQL_LIST *t
|
|||
if (!cursor || !tables->first)
|
||||
{
|
||||
aux->lock_type= lex->lock_option;
|
||||
if (!tables->next)
|
||||
tables->next= (byte**) &tables->first;
|
||||
link_in_list(tables,(byte*)aux,(byte**) &aux->next);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue