~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to storage/innodb_plugin/include/handler0alter.h

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*****************************************************************************
 
2
 
 
3
Copyright (c) 2005, 2009, Innobase Oy. All Rights Reserved.
 
4
 
 
5
This program is free software; you can redistribute it and/or modify it under
 
6
the terms of the GNU General Public License as published by the Free Software
 
7
Foundation; version 2 of the License.
 
8
 
 
9
This program is distributed in the hope that it will be useful, but WITHOUT
 
10
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
 
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
 
12
 
 
13
You should have received a copy of the GNU General Public License along with
 
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
 
16
 
 
17
*****************************************************************************/
 
18
 
 
19
/**************************************************//**
 
20
@file include/handler0alter.h
 
21
Smart ALTER TABLE
 
22
*******************************************************/
 
23
 
 
24
/*************************************************************//**
 
25
Copies an InnoDB record to table->record[0]. */
 
26
UNIV_INTERN
 
27
void
 
28
innobase_rec_to_mysql(
 
29
/*==================*/
 
30
        TABLE*                  table,          /*!< in/out: MySQL table */
 
31
        const rec_t*            rec,            /*!< in: record */
 
32
        const dict_index_t*     index,          /*!< in: index */
 
33
        const ulint*            offsets);       /*!< in: rec_get_offsets(
 
34
                                                rec, index, ...) */
 
35
 
 
36
/*************************************************************//**
 
37
Resets table->record[0]. */
 
38
UNIV_INTERN
 
39
void
 
40
innobase_rec_reset(
 
41
/*===============*/
 
42
        TABLE*                  table);         /*!< in/out: MySQL table */