drizzle
C++ MySQL-protocol-compatible database server
Loading...
Searching...
No Matches
drizzled::CopyInfo Class Reference

#include <copy_info.h>

Collaboration diagram for drizzled::CopyInfo:
[legend]

Public Attributes

ha_rows records
ha_rows deleted
ha_rows updated
ha_rows copied
ha_rows error_count
ha_rows touched
enum enum_duplicates handle_duplicates
int escape_char
int last_errno
bool ignore
List< Item > * update_fields
List< Item > * update_values

Detailed Description

The COPY_INFO structure is used by INSERT/REPLACE code. The schema of the row counting by the INSERT/INSERT ... ON DUPLICATE KEY UPDATE code: If a row is inserted then the copied variable is incremented. If a row is updated by the INSERT ... ON DUPLICATE KEY UPDATE and the new data differs from the old one then the copied and the updated variables are incremented. The touched variable is incremented if a row was touched by the update part of the INSERT ... ON DUPLICATE KEY UPDATE no matter whether the row was actually changed or not.

Definition at line 40 of file copy_info.h.

Constructor & Destructor Documentation

◆ CopyInfo()

drizzled::CopyInfo::CopyInfo ( )
inline

Definition at line 57 of file copy_info.h.

Member Data Documentation

◆ copied

ha_rows drizzled::CopyInfo::copied

Number of copied records

Definition at line 46 of file copy_info.h.

◆ deleted

ha_rows drizzled::CopyInfo::deleted

Number of deleted records

Definition at line 44 of file copy_info.h.

◆ error_count

ha_rows drizzled::CopyInfo::error_count

Definition at line 47 of file copy_info.h.

◆ escape_char

int drizzled::CopyInfo::escape_char

Definition at line 50 of file copy_info.h.

◆ handle_duplicates

enum enum_duplicates drizzled::CopyInfo::handle_duplicates

Definition at line 49 of file copy_info.h.

◆ ignore

bool drizzled::CopyInfo::ignore

Definition at line 51 of file copy_info.h.

◆ last_errno

int drizzled::CopyInfo::last_errno

Definition at line 50 of file copy_info.h.

◆ records

ha_rows drizzled::CopyInfo::records

Number of processed records

Definition at line 43 of file copy_info.h.

◆ touched

ha_rows drizzled::CopyInfo::touched

Definition at line 48 of file copy_info.h.

◆ update_fields

List<Item>* drizzled::CopyInfo::update_fields

Definition at line 53 of file copy_info.h.

◆ update_values

List<Item>* drizzled::CopyInfo::update_values

Definition at line 54 of file copy_info.h.

◆ updated

ha_rows drizzled::CopyInfo::updated

Number of updated records

Definition at line 45 of file copy_info.h.


The documentation for this class was generated from the following file: