My Project
|
00001 /* Copyright (c) 2006, 2010, 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_UPDATE_INCLUDED 00017 #define SQL_UPDATE_INCLUDED 00018 00019 #include "sql_class.h" /* enum_duplicates */ 00020 00021 class Item; 00022 struct TABLE_LIST; 00023 class THD; 00024 00025 typedef class st_select_lex SELECT_LEX; 00026 typedef class st_select_lex_unit SELECT_LEX_UNIT; 00027 00028 bool mysql_prepare_update(THD *thd, TABLE_LIST *table_list, 00029 Item **conds, uint order_num, ORDER *order); 00030 int mysql_update(THD *thd,TABLE_LIST *tables,List<Item> &fields, 00031 List<Item> &values,Item *conds, 00032 uint order_num, ORDER *order, ha_rows limit, 00033 enum enum_duplicates handle_duplicates, bool ignore, 00034 ha_rows *found_return, ha_rows *updated_return); 00035 bool mysql_multi_update(THD *thd, TABLE_LIST *table_list, 00036 List<Item> *fields, List<Item> *values, 00037 Item *conds, ulonglong options, 00038 enum enum_duplicates handle_duplicates, bool ignore, 00039 SELECT_LEX_UNIT *unit, SELECT_LEX *select_lex, 00040 multi_update **result); 00041 bool records_are_comparable(const TABLE *table); 00042 bool compare_records(const TABLE *table); 00043 00044 #endif /* SQL_UPDATE_INCLUDED */