summaryrefslogtreecommitdiff
path: root/sql/mysql_priv.h
diff options
context:
space:
mode:
authorbell@sanja.is.com.ua <>2002-10-08 14:50:12 +0300
committerbell@sanja.is.com.ua <>2002-10-08 14:50:12 +0300
commit2715d331f7cf3ed407717c3473204ef316018635 (patch)
tree30b02ef49b175b51e61fdc08f11239b5bd0a0fa4 /sql/mysql_priv.h
parentfc31cba88a20251692fae7c6b9dbc816cc371601 (diff)
downloadmariadb-git-2715d331f7cf3ed407717c3473204ef316018635.tar.gz
fixed couple of bugs in field/reference name resolution
fixed error handling in subselect fix_field
Diffstat (limited to 'sql/mysql_priv.h')
-rw-r--r--sql/mysql_priv.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/sql/mysql_priv.h b/sql/mysql_priv.h
index 8e691c8f96c..b74a2da5f6d 100644
--- a/sql/mysql_priv.h
+++ b/sql/mysql_priv.h
@@ -456,6 +456,7 @@ bool wait_for_tables(THD *thd);
bool table_is_used(TABLE *table, bool wait_for_name_lock);
bool drop_locked_tables(THD *thd,const char *db, const char *table_name);
void abort_locked_tables(THD *thd,const char *db, const char *table_name);
+extern const Field *not_found_field;
Field *find_field_in_tables(THD *thd, Item_field *item, TABLE_LIST *tables,
bool report_error);
Field *find_field_in_table(THD *thd,TABLE *table,const char *name,uint length,
@@ -545,7 +546,11 @@ TABLE *unlink_open_table(THD *thd,TABLE *list,TABLE *find);
SQL_SELECT *make_select(TABLE *head, table_map const_tables,
table_map read_tables, COND *conds, int *error);
-Item ** find_item_in_list(Item *item, List<Item> &items, bool report_error);
+enum find_item_error_report_type {REPORT_ALL_ERRORS, REPORT_EXCEPT_NOT_FOUND,
+ IGNORE_ERRORS};
+extern const Item **not_found_item;
+Item ** find_item_in_list(Item *item, List<Item> &items,
+ find_item_error_report_type report_error);
bool insert_fields(THD *thd,TABLE_LIST *tables,
const char *db_name, const char *table_name,
List_iterator<Item> *it);