1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

after review changes in IN/ALL/ANY/SOME (SCRUM)

This commit is contained in:
bell@sanja.is.com.ua
2002-11-27 17:04:43 +02:00
parent aa9bfb44f9
commit f8ff8fc6de
5 changed files with 69 additions and 22 deletions

View File

@ -743,6 +743,29 @@ void close_temporary_tables(THD *thd)
thd->temporary_tables=0;
}
/*
Find first suitable table in given list.
SYNOPSIS
find_table_in_list()
table - pointer to table list
db_name - data base name or 0 for any
table_name - table name or 0 for any
RETURN VALUES
NULL Table not found
# Pointer to found table.
*/
TABLE_LIST * find_table_in_list(TABLE_LIST *table,
const char *db_name, const char *table_name)
{
for (; table; table= table->next)
if ((!db_name || !strcmp(table->db, db_name)) &&
(!table_name || !strcmp(table->alias, table_name)))
break;
return table;
}
TABLE **find_temporary_table(THD *thd, const char *db, const char *table_name)
{