My Project
|
00001 #ifndef DELAYABLE_INSERT_OPERATION_H 00002 #define DELAYABLE_INSERT_OPERATION_H 00003 00004 /* 00005 Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; version 2 of the License. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00019 */ 00020 #include "sql_class.h" 00021 00025 class Delayable_insert_operation : public COPY_INFO 00026 { 00027 public: 00028 00029 /* 00030 This is an INSERT, and as function defaults have been set by the client 00031 thread already, they needn't be set again: 00032 */ 00033 Delayable_insert_operation() : 00034 COPY_INFO(COPY_INFO::INSERT_OPERATION, 00035 NULL, // inserted_columns 00036 false, // manage_defaults 00037 DUP_ERROR, // duplicate_handling 00038 false) // ignore_errors 00039 {} 00040 00046 virtual void set_function_defaults(TABLE *table) { } 00047 00048 00056 void set_dup_and_ignore(enum enum_duplicates d, bool i) 00057 { 00058 handle_duplicates= d; 00059 ignore= i; 00060 } 00061 }; 00062 00063 #endif // DELAYABLE_INSERT_OPERATION_H