~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function_hash.gperf

  • Committer: Monty Taylor
  • Date: 2008-09-16 00:00:48 UTC
  • mto: This revision was merged to the branch mainline in revision 391.
  • Revision ID: monty@inaugust.com-20080916000048-3rvrv3gv9l0ad3gs
Fixed copyright headers in drizzled/

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
%{
2
 
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
3
 
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
4
 
 *
5
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
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
 
 
24
 
#include <drizzled/foreign_key.h>
25
 
#include <drizzled/sql_yacc.h>
26
 
#include <drizzled/lex_symbol.h>
27
 
 
28
 
using namespace drizzled;
29
 
 
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
 
%}
40
 
struct st_symbol {
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
 
%%