MySQL 5.6.14 Source Code Document
Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
delayable_insert_operation.h
1
#ifndef DELAYABLE_INSERT_OPERATION_H
2
#define DELAYABLE_INSERT_OPERATION_H
3
4
/*
5
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
6
7
This program is free software; you can redistribute it and/or modify
8
it under the terms of the GNU General Public License as published by
9
the Free Software Foundation; version 2 of the License.
10
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
15
16
You should have received a copy of the GNU General Public License
17
along with this program; if not, write to the Free Software
18
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
19
*/
20
#include "sql_class.h"
21
25
class
Delayable_insert_operation
:
public
COPY_INFO
26
{
27
public
:
28
29
/*
30
This is an INSERT, and as function defaults have been set by the client
31
thread already, they needn't be set again:
32
*/
33
Delayable_insert_operation
() :
34
COPY_INFO
(COPY_INFO::INSERT_OPERATION,
35
NULL,
// inserted_columns
36
false
,
// manage_defaults
37
DUP_ERROR,
// duplicate_handling
38
false
)
// ignore_errors
39
{}
40
46
virtual
void
set_function_defaults
(
TABLE
*
table
) { }
47
48
56
void
set_dup_and_ignore
(
enum
enum_duplicates d,
bool
i
)
57
{
58
handle_duplicates
= d;
59
ignore
=
i
;
60
}
61
};
62
63
#endif // DELAYABLE_INSERT_OPERATION_H
sql
delayable_insert_operation.h
Generated on Sat Nov 9 2013 01:25:15 for MySQL 5.6.14 Source Code Document by
1.8.1.2