~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/pars0opt.h

  • Committer: Monty Taylor
  • Date: 2010-04-22 02:46:23 UTC
  • mto: (1497.3.4 enable-dtrace)
  • mto: This revision was merged to the branch mainline in revision 1527.
  • Revision ID: mordred@inaugust.com-20100422024623-4urw8fi8eraci08p
Don't overwrite the pandora_vc_revinfo file if we don't have new
authoratative information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (C) 1997, 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., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
 
/**************************************************//**
20
 
@file include/pars0opt.h
21
 
Simple SQL optimizer
22
 
 
23
 
Created 12/21/1997 Heikki Tuuri
24
 
*******************************************************/
25
 
 
26
 
#ifndef pars0opt_h
27
 
#define pars0opt_h
28
 
 
29
 
#include "univ.i"
30
 
#include "que0types.h"
31
 
#include "usr0types.h"
32
 
#include "pars0sym.h"
33
 
#include "dict0types.h"
34
 
#include "row0sel.h"
35
 
 
36
 
/*******************************************************************//**
37
 
Optimizes a select. Decides which indexes to tables to use. The tables
38
 
are accessed in the order that they were written to the FROM part in the
39
 
select statement. */
40
 
UNIV_INTERN
41
 
void
42
 
opt_search_plan(
43
 
/*============*/
44
 
        sel_node_t*     sel_node);      /*!< in: parsed select node */
45
 
/*******************************************************************//**
46
 
Looks for occurrences of the columns of the table in the query subgraph and
47
 
adds them to the list of columns if an occurrence of the same column does not
48
 
already exist in the list. If the column is already in the list, puts a value
49
 
indirection to point to the occurrence in the column list, except if the
50
 
column occurrence we are looking at is in the column list, in which case
51
 
nothing is done. */
52
 
UNIV_INTERN
53
 
void
54
 
opt_find_all_cols(
55
 
/*==============*/
56
 
        ibool           copy_val,       /*!< in: if TRUE, new found columns are
57
 
                                        added as columns to copy */
58
 
        dict_index_t*   index,          /*!< in: index to use */
59
 
        sym_node_list_t* col_list,      /*!< in: base node of a list where
60
 
                                        to add new found columns */
61
 
        plan_t*         plan,           /*!< in: plan or NULL */
62
 
        que_node_t*     exp);           /*!< in: expression or condition */
63
 
/********************************************************************//**
64
 
Prints info of a query plan. */
65
 
UNIV_INTERN
66
 
void
67
 
opt_print_query_plan(
68
 
/*=================*/
69
 
        sel_node_t*     sel_node);      /*!< in: select node */
70
 
 
71
 
#ifndef UNIV_NONINL
72
 
#include "pars0opt.ic"
73
 
#endif
74
 
 
75
 
#endif