My Project
|
00001 /* Copyright (c) 2007, 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 Foundation, 00014 51 Franklin Street, Suite 500, Boston, MA 02110-1335 USA */ 00015 00016 #ifndef RPL_RECORD_H 00017 #define RPL_RECORD_H 00018 00019 #include <rpl_reporting.h> 00020 #include "my_global.h" /* uchar */ 00021 00022 class Relay_log_info; 00023 struct TABLE; 00024 typedef struct st_bitmap MY_BITMAP; 00025 00026 #if !defined(MYSQL_CLIENT) 00027 size_t pack_row(TABLE* table, MY_BITMAP const* cols, 00028 uchar *row_data, const uchar *data); 00029 #endif 00030 00031 #if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION) 00032 int unpack_row(Relay_log_info const *rli, 00033 TABLE *table, uint const colcnt, 00034 uchar const *const row_data, MY_BITMAP const *cols, 00035 uchar const **const curr_row_end, ulong *const master_reclength, 00036 uchar const *const row_end); 00037 00038 // Fill table's record[0] with default values. 00039 int prepare_record(TABLE *const table, const MY_BITMAP *cols, const bool check); 00040 #endif 00041 00042 #endif