1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
* vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
* Copyright (C) 2008 Sun Microsystems
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.
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.
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
1
/* Copyright (C) 2000-2006 MySQL AB
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.
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.
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 */
20
16
/* Functions to create an item. Used by sql/sql_yacc.yy */
22
#ifndef DRIZZLE_SERVER_ITEM_CREATE_H
23
#define DRIZZLE_SERVER_ITEM_CREATE_H
26
22
Public function builder interface.
149
147
/** Destructor. */
150
148
virtual ~Create_udf_func() {}
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);
157
157
Builder for cast expressions.
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);
170
int item_create_init();
171
void item_create_cleanup();
173
#endif /* DRIZZLE_SERVER_ITEM_CREATE_H */