My Project
sql_insert.h
00001 /* Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
00002 
00003    This program is free software; you can redistribute it and/or modify
00004    it under the terms of the GNU General Public License as published by
00005    the Free Software Foundation; version 2 of the License.
00006 
00007    This program is distributed in the hope that it will be useful,
00008    but WITHOUT ANY WARRANTY; without even the implied warranty of
00009    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00010    GNU General Public License for more details.
00011 
00012    You should have received a copy of the GNU General Public License
00013    along with this program; if not, write to the Free Software
00014    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA */
00015 
00016 #ifndef SQL_INSERT_INCLUDED
00017 #define SQL_INSERT_INCLUDED
00018 
00019 #include "sql_class.h"                          /* enum_duplicates */
00020 #include "sql_list.h"
00021 
00022 /* Instead of including sql_lex.h we add this typedef here */
00023 typedef List<Item> List_item;
00024 
00025 bool mysql_prepare_insert(THD *thd, TABLE_LIST *table_list, TABLE *table,
00026                           List<Item> &fields, List_item *values,
00027                           List<Item> &update_fields,
00028                           List<Item> &update_values, enum_duplicates duplic,
00029                           Item **where, bool select_insert,
00030                           bool check_fields, bool abort_on_warning);
00031 bool mysql_insert(THD *thd,TABLE_LIST *table,List<Item> &fields,
00032                   List<List_item> &values, List<Item> &update_fields,
00033                   List<Item> &update_values, enum_duplicates flag,
00034                   bool ignore);
00035 void upgrade_lock_type_for_insert(THD *thd, thr_lock_type *lock_type,
00036                                   enum_duplicates duplic,
00037                                   bool is_multi_insert);
00038 int check_that_all_fields_are_given_values(THD *thd, TABLE *entry,
00039                                            TABLE_LIST *table_list);
00040 void prepare_triggers_for_insert_stmt(TABLE *table);
00041 int write_record(THD *thd, TABLE *table,
00042                  COPY_INFO *info, COPY_INFO *update);
00043 void kill_delayed_threads(void);
00044 bool validate_default_values_of_unset_fields(THD *thd, TABLE *table);
00045 
00046 #ifdef EMBEDDED_LIBRARY
00047 inline void kill_delayed_threads(void) {}
00048 #endif
00049 
00050 #endif /* SQL_INSERT_INCLUDED */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines