~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to sql/item_create.h

  • Committer: Brian Aker
  • Date: 2008-07-07 14:25:25 UTC
  • mto: (77.1.25 codestyle)
  • mto: This revision was merged to the branch mainline in revision 82.
  • Revision ID: brian@tangent.org-20080707142525-xzy2nl3ie2ebwfln
LL() cleanup

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
 
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems
5
 
 *
6
 
 *  This program is free software; you can redistribute it and/or modify
7
 
 *  it under the terms of the GNU General Public License as published by
8
 
 *  the Free Software Foundation; version 2 of the License.
9
 
 *
10
 
 *  This program is distributed in the hope that it will be useful,
11
 
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
 
 *  GNU General Public License for more details.
14
 
 *
15
 
 *  You should have received a copy of the GNU General Public License
16
 
 *  along with this program; if not, write to the Free Software
17
 
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
 
 */
 
1
/* Copyright (C) 2000-2006 MySQL AB
 
2
 
 
3
   This program is free software; you can redistribute it and/or modify
 
4
   it under the terms of the GNU General Public License as published by
 
5
   the Free Software Foundation; version 2 of the License.
 
6
 
 
7
   This program is distributed in the hope that it will be useful,
 
8
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
9
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
10
   GNU General Public License for more details.
 
11
 
 
12
   You should have received a copy of the GNU General Public License
 
13
   along with this program; if not, write to the Free Software
 
14
   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
19
15
 
20
16
/* Functions to create an item. Used by sql/sql_yacc.yy */
21
17
 
22
 
#ifndef DRIZZLE_SERVER_ITEM_CREATE_H
23
 
#define DRIZZLE_SERVER_ITEM_CREATE_H
 
18
#ifndef ITEM_CREATE_H
 
19
#define ITEM_CREATE_H
24
20
 
25
21
/**
26
22
  Public function builder interface.
66
62
  virtual ~Create_func() {}
67
63
};
68
64
 
 
65
 
69
66
/**
70
67
  Function builder for qualified functions.
71
68
  This builder is used with functions call using a qualified function name
122
119
extern Create_qfunc * find_qualified_function_builder(THD *thd);
123
120
 
124
121
 
 
122
#ifdef HAVE_DLOPEN
125
123
/**
126
124
  Function builder for User Defined Functions.
127
125
*/
149
147
  /** Destructor. */
150
148
  virtual ~Create_udf_func() {}
151
149
};
 
150
#endif
 
151
 
152
152
 
153
153
Item*
154
 
create_func_char_cast(THD *thd, Item *a, int len, const CHARSET_INFO * const cs);
 
154
create_func_char_cast(THD *thd, Item *a, int len, CHARSET_INFO *cs);
155
155
 
156
156
/**
157
157
  Builder for cast expressions.
165
165
Item *
166
166
create_func_cast(THD *thd, Item *a, Cast_target cast_type,
167
167
                 const char *len, const char *dec,
168
 
                 const CHARSET_INFO * const cs);
169
 
 
170
 
int item_create_init();
171
 
void item_create_cleanup();
172
 
 
173
 
#endif /* DRIZZLE_SERVER_ITEM_CREATE_H */
 
168
                 CHARSET_INFO *cs);
 
169
#endif
 
170