~drizzle-trunk/drizzle/development

779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
1
%{
2
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
3
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
 *
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
5
 *  Copyright (C) 2008 Sun Microsystems, Inc.
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
6
 *
7
 *  This program is free software; you can redistribute it and/or modify
8
 *  it under the terms of the GNU General Public License as published by
9
 *  the Free Software Foundation; version 2 of the License.
10
 *
11
 *  This program is distributed in the hope that it will be useful,
12
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 *  GNU General Public License for more details.
15
 *
16
 *  You should have received a copy of the GNU General Public License
17
 *  along with this program; if not, write to the Free Software
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
 */
20
21
22
/* This file includes all functions */
23
1237.9.4 by Padraig O'Sullivan
Removed the inclusion of drizzled/field.h in the server_includes header file.
24
#include <drizzled/foreign_key.h>
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
25
#include <drizzled/sql_yacc.h>
26
#include <drizzled/lex_symbol.h>
27
1280.1.10 by Monty Taylor
Put everything in drizzled into drizzled namespace.
28
using namespace drizzled;
29
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
30
/*
31
  Symbols are broken into separated arrays to allow field names with
32
  same name as functions.
33
  These are kept sorted for human lookup (the symbols are hashed).
34
35
  NOTE! The symbol tables should be the same regardless of what features
36
  are compiled into the server. Don't add ifdef'ed symbols to the
37
  lists
38
*/
39
%}
2430.1.8 by Olaf van der Spek
Use assign(), data() and size()
40
struct SYMBOL {
779.4.5 by Monty Taylor
Replaced gen_lex_hash with gperf. Yay for no more building tools to build source!!!
41
  const char *name;
42
  unsigned int  tok;
43
};
44
%%
45
ADDDATE,ADDDATE_SYM
46
CAST,CAST_SYM
47
COUNT,COUNT_SYM
48
CURDATE,CURDATE
49
DATE_ADD,DATE_ADD_INTERVAL
50
DATE_SUB,DATE_SUB_INTERVAL
51
EXTRACT,EXTRACT_SYM
52
GROUP_CONCAT,GROUP_CONCAT_SYM
53
MAX,MAX_SYM
54
# unireg function
55
MID,SUBSTRING
56
MIN,MIN_SYM
57
NOW,NOW_SYM
58
POSITION,POSITION_SYM
59
SESSION_USER,USER
60
STD,STD_SYM
61
STDDEV,STD_SYM
62
STDDEV_POP,STD_SYM
63
STDDEV_SAMP,STDDEV_SAMP_SYM
64
SUBDATE,SUBDATE_SYM
65
SUBSTR,SUBSTRING
66
SUBSTRING,SUBSTRING
67
SUM,SUM_SYM
68
SYSDATE,SYSDATE
69
SYSTEM_USER,USER
70
TRIM,TRIM
71
VARIANCE,VARIANCE_SYM
72
VAR_POP,VARIANCE_SYM
73
VAR_SAMP,VAR_SAMP_SYM
74
%%