Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
0c5b6c19
Commit
0c5b6c19
authored
Jan 23, 2004
by
igor@rurik.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge ibabaev@bk-internal.mysql.com:/home/bk/mysql-4.1
into rurik.mysql.com:/home/igor/mysql-4.1
parents
a2209361
acc84f03
Changes
43
Show whitespace changes
Inline
Side-by-side
Showing
43 changed files
with
934 additions
and
744 deletions
+934
-744
include/my_global.h
include/my_global.h
+2
-0
include/mysqld_error.h
include/mysqld_error.h
+2
-1
mysql-test/r/derived.result
mysql-test/r/derived.result
+1
-1
mysys/default.c
mysys/default.c
+1
-1
mysys/my_new.cc
mysys/my_new.cc
+2
-2
sql/field.cc
sql/field.cc
+9
-1
sql/field.h
sql/field.h
+3
-4
sql/gen_lex_hash.cc
sql/gen_lex_hash.cc
+2
-1
sql/item_create.cc
sql/item_create.cc
+2
-0
sql/item_create.h
sql/item_create.h
+4
-0
sql/item_geofunc.cc
sql/item_geofunc.cc
+4
-0
sql/item_geofunc.h
sql/item_geofunc.h
+11
-0
sql/item_strfunc.cc
sql/item_strfunc.cc
+2
-2
sql/lex.h
sql/lex.h
+647
-635
sql/lex_symbol.h
sql/lex_symbol.h
+3
-0
sql/mysql_priv.h
sql/mysql_priv.h
+9
-0
sql/share/czech/errmsg.txt
sql/share/czech/errmsg.txt
+1
-0
sql/share/danish/errmsg.txt
sql/share/danish/errmsg.txt
+1
-0
sql/share/dutch/errmsg.txt
sql/share/dutch/errmsg.txt
+1
-0
sql/share/english/errmsg.txt
sql/share/english/errmsg.txt
+1
-0
sql/share/estonian/errmsg.txt
sql/share/estonian/errmsg.txt
+1
-0
sql/share/french/errmsg.txt
sql/share/french/errmsg.txt
+1
-0
sql/share/german/errmsg.txt
sql/share/german/errmsg.txt
+1
-0
sql/share/greek/errmsg.txt
sql/share/greek/errmsg.txt
+1
-0
sql/share/hungarian/errmsg.txt
sql/share/hungarian/errmsg.txt
+1
-0
sql/share/italian/errmsg.txt
sql/share/italian/errmsg.txt
+1
-0
sql/share/japanese/errmsg.txt
sql/share/japanese/errmsg.txt
+1
-0
sql/share/korean/errmsg.txt
sql/share/korean/errmsg.txt
+1
-0
sql/share/norwegian-ny/errmsg.txt
sql/share/norwegian-ny/errmsg.txt
+1
-0
sql/share/norwegian/errmsg.txt
sql/share/norwegian/errmsg.txt
+1
-0
sql/share/polish/errmsg.txt
sql/share/polish/errmsg.txt
+1
-0
sql/share/portuguese/errmsg.txt
sql/share/portuguese/errmsg.txt
+1
-0
sql/share/romanian/errmsg.txt
sql/share/romanian/errmsg.txt
+1
-0
sql/share/russian/errmsg.txt
sql/share/russian/errmsg.txt
+1
-0
sql/share/serbian/errmsg.txt
sql/share/serbian/errmsg.txt
+1
-0
sql/share/slovak/errmsg.txt
sql/share/slovak/errmsg.txt
+1
-0
sql/share/spanish/errmsg.txt
sql/share/spanish/errmsg.txt
+1
-0
sql/share/swedish/errmsg.txt
sql/share/swedish/errmsg.txt
+1
-0
sql/share/ukrainian/errmsg.txt
sql/share/ukrainian/errmsg.txt
+1
-0
sql/sql_table.cc
sql/sql_table.cc
+23
-1
sql/sql_yacc.yy
sql/sql_yacc.yy
+174
-95
sql/table.cc
sql/table.cc
+5
-0
sql/unireg.cc
sql/unireg.cc
+5
-0
No files found.
include/my_global.h
View file @
0c5b6c19
...
@@ -1168,4 +1168,6 @@ typedef union {
...
@@ -1168,4 +1168,6 @@ typedef union {
#define MYSQL_UNIVERSAL_CLIENT_CHARSET MYSQL_DEFAULT_CHARSET_NAME
#define MYSQL_UNIVERSAL_CLIENT_CHARSET MYSQL_DEFAULT_CHARSET_NAME
#endif
#endif
#define HAVE_SPATIAL
#define HAVE_RTREE_KEYS
#endif
/* my_global_h */
#endif
/* my_global_h */
include/mysqld_error.h
View file @
0c5b6c19
...
@@ -304,4 +304,5 @@
...
@@ -304,4 +304,5 @@
#define ER_UNKNOWN_STORAGE_ENGINE 1285
#define ER_UNKNOWN_STORAGE_ENGINE 1285
#define ER_WARN_DEPRECATED_SYNTAX 1286
#define ER_WARN_DEPRECATED_SYNTAX 1286
#define ER_NON_UPDATABLE_TABLE 1287
#define ER_NON_UPDATABLE_TABLE 1287
#define ER_ERROR_MESSAGES 288
#define ER_FEATURE_DISABLED 1288
#define ER_ERROR_MESSAGES 289
mysql-test/r/derived.result
View file @
0c5b6c19
...
@@ -254,7 +254,7 @@ CREATE TABLE `t1` (
...
@@ -254,7 +254,7 @@ CREATE TABLE `t1` (
`M` tinyint(1) default '0',
`M` tinyint(1) default '0',
) TYPE=MyISAM DEFAULT CHARSET=latin1;
) TYPE=MyISAM DEFAULT CHARSET=latin1;
Warnings:
Warnings:
Warning 1286 'TYPE=
database_engine' is deprecated. Use 'ENGINE=databas
e_engine' instead.
Warning 1286 'TYPE=
storage_engine' is deprecated. Use 'ENGINE=storag
e_engine' instead.
INSERT INTO `t1` (N, M) VALUES (1, 0),(1, 0),(1, 0),(2, 0),(2, 0),(3, 0);
INSERT INTO `t1` (N, M) VALUES (1, 0),(1, 0),(1, 0),(2, 0),(2, 0),(3, 0);
UPDATE `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N SET P1.M = 2;
UPDATE `t1` AS P1 INNER JOIN (SELECT N FROM `t1` GROUP BY N HAVING Count(M) > 1) AS P2 ON P1.N = P2.N SET P1.M = 2;
select * from t1;
select * from t1;
...
...
mysys/default.c
View file @
0c5b6c19
...
@@ -462,7 +462,7 @@ static char *remove_end_comment(char *ptr)
...
@@ -462,7 +462,7 @@ static char *remove_end_comment(char *ptr)
quote
=
0
;
quote
=
0
;
}
}
/* We are not inside a comment */
/* We are not inside a comment */
if
(
!
quote
&&
(
*
ptr
==
'#'
||
*
ptr
==
';'
)
)
if
(
!
quote
&&
*
ptr
==
'#'
)
{
{
*
ptr
=
0
;
*
ptr
=
0
;
return
ptr
;
return
ptr
;
...
...
mysys/my_new.cc
View file @
0c5b6c19
...
@@ -19,10 +19,10 @@
...
@@ -19,10 +19,10 @@
with gcc 3.0.x to avoid including libstdc++
with gcc 3.0.x to avoid including libstdc++
*/
*/
#include "mysys_priv.h"
#ifdef USE_MYSYS_NEW
#ifdef USE_MYSYS_NEW
#include "mysys_priv.h"
void
*
operator
new
(
size_t
sz
)
void
*
operator
new
(
size_t
sz
)
{
{
return
(
void
*
)
malloc
(
sz
?
sz
:
1
);
return
(
void
*
)
malloc
(
sz
?
sz
:
1
);
...
...
sql/field.cc
View file @
0c5b6c19
...
@@ -4465,7 +4465,7 @@ Field_blob::Field_blob(char *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
...
@@ -4465,7 +4465,7 @@ Field_blob::Field_blob(char *ptr_arg, uchar *null_ptr_arg, uchar null_bit_arg,
:
Field_str
(
ptr_arg
,
(
1L
<<
min
(
blob_pack_length
,
3
)
*
8
)
-
1L
,
:
Field_str
(
ptr_arg
,
(
1L
<<
min
(
blob_pack_length
,
3
)
*
8
)
-
1L
,
null_ptr_arg
,
null_bit_arg
,
unireg_check_arg
,
field_name_arg
,
null_ptr_arg
,
null_bit_arg
,
unireg_check_arg
,
field_name_arg
,
table_arg
,
cs
),
table_arg
,
cs
),
geom_flag
(
true
),
packlength
(
blob_pack_length
)
packlength
(
blob_pack_length
)
{
{
flags
|=
BLOB_FLAG
;
flags
|=
BLOB_FLAG
;
if
(
table
)
if
(
table
)
...
@@ -4703,6 +4703,7 @@ void Field_blob::get_key_image(char *buff,uint length,
...
@@ -4703,6 +4703,7 @@ void Field_blob::get_key_image(char *buff,uint length,
uint32
blob_length
=
get_length
(
ptr
);
uint32
blob_length
=
get_length
(
ptr
);
char
*
blob
;
char
*
blob
;
#ifdef HAVE_SPATIAL
if
(
type
==
itMBR
)
if
(
type
==
itMBR
)
{
{
if
(
!
blob_length
)
if
(
!
blob_length
)
...
@@ -4719,6 +4720,7 @@ void Field_blob::get_key_image(char *buff,uint length,
...
@@ -4719,6 +4720,7 @@ void Field_blob::get_key_image(char *buff,uint length,
float8store
(
buff
+
24
,
mbr
.
ymax
);
float8store
(
buff
+
24
,
mbr
.
ymax
);
return
;
return
;
}
}
#endif
/*HAVE_SPATIAL*/
if
((
uint32
)
length
>
blob_length
)
if
((
uint32
)
length
>
blob_length
)
{
{
...
@@ -4928,6 +4930,7 @@ uint Field_blob::max_packed_col_length(uint max_length)
...
@@ -4928,6 +4930,7 @@ uint Field_blob::max_packed_col_length(uint max_length)
return
(
max_length
>
255
?
2
:
1
)
+
max_length
;
return
(
max_length
>
255
?
2
:
1
)
+
max_length
;
}
}
#ifdef HAVE_SPATIAL
void
Field_geom
::
get_key_image
(
char
*
buff
,
uint
length
,
CHARSET_INFO
*
cs
,
void
Field_geom
::
get_key_image
(
char
*
buff
,
uint
length
,
CHARSET_INFO
*
cs
,
imagetype
type
)
imagetype
type
)
...
@@ -5011,6 +5014,7 @@ int Field_geom::store(const char *from, uint length, CHARSET_INFO *cs)
...
@@ -5011,6 +5014,7 @@ int Field_geom::store(const char *from, uint length, CHARSET_INFO *cs)
return
0
;
return
0
;
}
}
#endif
/*HAVE_SPATIAL*/
/****************************************************************************
/****************************************************************************
** enum type.
** enum type.
...
@@ -5486,10 +5490,12 @@ Field *make_field(char *ptr, uint32 field_length,
...
@@ -5486,10 +5490,12 @@ Field *make_field(char *ptr, uint32 field_length,
f_packtype
(
pack_flag
),
f_packtype
(
pack_flag
),
field_length
);
field_length
);
#ifdef HAVE_SPATIAL
if
(
f_is_geom
(
pack_flag
))
if
(
f_is_geom
(
pack_flag
))
return
new
Field_geom
(
ptr
,
null_pos
,
null_bit
,
return
new
Field_geom
(
ptr
,
null_pos
,
null_bit
,
unireg_check
,
field_name
,
table
,
unireg_check
,
field_name
,
table
,
pack_length
,
geom_type
);
pack_length
,
geom_type
);
#endif
if
(
f_is_blob
(
pack_flag
))
if
(
f_is_blob
(
pack_flag
))
return
new
Field_blob
(
ptr
,
null_pos
,
null_bit
,
return
new
Field_blob
(
ptr
,
null_pos
,
null_bit
,
unireg_check
,
field_name
,
table
,
unireg_check
,
field_name
,
table
,
...
@@ -5649,10 +5655,12 @@ create_field::create_field(Field *old_field,Field *orig_field)
...
@@ -5649,10 +5655,12 @@ create_field::create_field(Field *old_field,Field *orig_field)
def
=
new
Item_string
(
pos
,
tmp
.
length
(),
charset
);
def
=
new
Item_string
(
pos
,
tmp
.
length
(),
charset
);
}
}
}
}
#ifdef HAVE_SPATIAL
if
(
sql_type
==
FIELD_TYPE_GEOMETRY
)
if
(
sql_type
==
FIELD_TYPE_GEOMETRY
)
{
{
geom_type
=
((
Field_geom
*
)
old_field
)
->
geom_type
;
geom_type
=
((
Field_geom
*
)
old_field
)
->
geom_type
;
}
}
#endif
}
}
...
...
sql/field.h
View file @
0c5b6c19
...
@@ -913,7 +913,6 @@ public:
...
@@ -913,7 +913,6 @@ public:
class
Field_blob
:
public
Field_str
{
class
Field_blob
:
public
Field_str
{
bool
geom_flag
;
protected:
protected:
uint
packlength
;
uint
packlength
;
String
value
;
// For temporaries
String
value
;
// For temporaries
...
@@ -926,7 +925,7 @@ public:
...
@@ -926,7 +925,7 @@ public:
struct
st_table
*
table_arg
,
CHARSET_INFO
*
cs
)
struct
st_table
*
table_arg
,
CHARSET_INFO
*
cs
)
:
Field_str
((
char
*
)
0
,
len_arg
,
maybe_null_arg
?
(
uchar
*
)
""
:
0
,
0
,
:
Field_str
((
char
*
)
0
,
len_arg
,
maybe_null_arg
?
(
uchar
*
)
""
:
0
,
0
,
NONE
,
field_name_arg
,
table_arg
,
cs
),
NONE
,
field_name_arg
,
table_arg
,
cs
),
geom_flag
(
true
),
packlength
(
4
)
packlength
(
4
)
{
{
flags
|=
BLOB_FLAG
;
flags
|=
BLOB_FLAG
;
}
}
...
@@ -1001,7 +1000,7 @@ public:
...
@@ -1001,7 +1000,7 @@ public:
field_cast_enum
field_cast_type
()
{
return
FIELD_CAST_BLOB
;
}
field_cast_enum
field_cast_type
()
{
return
FIELD_CAST_BLOB
;
}
};
};
#ifdef HAVE_SPATIAL
class
Field_geom
:
public
Field_blob
{
class
Field_geom
:
public
Field_blob
{
public:
public:
enum
geometry_type
geom_type
;
enum
geometry_type
geom_type
;
...
@@ -1029,7 +1028,7 @@ public:
...
@@ -1029,7 +1028,7 @@ public:
void
set_key_image
(
char
*
buff
,
uint
length
,
CHARSET_INFO
*
cs
);
void
set_key_image
(
char
*
buff
,
uint
length
,
CHARSET_INFO
*
cs
);
field_cast_enum
field_cast_type
()
{
return
FIELD_CAST_GEOM
;
}
field_cast_enum
field_cast_type
()
{
return
FIELD_CAST_GEOM
;
}
};
};
#endif
/*HAVE_SPATIAL*/
class
Field_enum
:
public
Field_str
{
class
Field_enum
:
public
Field_str
{
protected:
protected:
...
...
sql/gen_lex_hash.cc
View file @
0c5b6c19
...
@@ -81,9 +81,10 @@ TODO:
...
@@ -81,9 +81,10 @@ TODO:
#endif
#endif
#include <my_getopt.h>
#include <my_getopt.h>
#include "mysql_version.h"
#include "mysql_version.h"
#include "mysql_priv.h"
#include "lex.h"
#include "lex.h"
st
atic
st
ruct
my_option
my_long_options
[]
=
struct
my_option
my_long_options
[]
=
{
{
{
"help"
,
'?'
,
"Display help and exit"
,
{
"help"
,
'?'
,
"Display help and exit"
,
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
0
,
0
,
0
,
GET_NO_ARG
,
NO_ARG
,
0
,
0
,
0
,
0
,
0
,
0
},
...
...
sql/item_create.cc
View file @
0c5b6c19
...
@@ -487,6 +487,7 @@ Item *create_func_quote(Item* a)
...
@@ -487,6 +487,7 @@ Item *create_func_quote(Item* a)
return
new
Item_func_quote
(
a
);
return
new
Item_func_quote
(
a
);
}
}
#ifdef HAVE_SPATIAL
Item
*
create_func_as_wkt
(
Item
*
a
)
Item
*
create_func_as_wkt
(
Item
*
a
)
{
{
return
new
Item_func_as_wkt
(
a
);
return
new
Item_func_as_wkt
(
a
);
...
@@ -646,6 +647,7 @@ Item *create_func_point(Item *a, Item *b)
...
@@ -646,6 +647,7 @@ Item *create_func_point(Item *a, Item *b)
{
{
return
new
Item_func_point
(
a
,
b
);
return
new
Item_func_point
(
a
,
b
);
}
}
#endif
/*HAVE_SPATIAL*/
Item
*
create_func_crc32
(
Item
*
a
)
Item
*
create_func_crc32
(
Item
*
a
)
{
{
...
...
sql/item_create.h
View file @
0c5b6c19
...
@@ -99,6 +99,8 @@ Item *create_func_is_free_lock(Item* a);
...
@@ -99,6 +99,8 @@ Item *create_func_is_free_lock(Item* a);
Item
*
create_func_is_used_lock
(
Item
*
a
);
Item
*
create_func_is_used_lock
(
Item
*
a
);
Item
*
create_func_quote
(
Item
*
a
);
Item
*
create_func_quote
(
Item
*
a
);
#ifdef HAVE_SPATIAL
Item
*
create_func_geometry_from_text
(
Item
*
a
);
Item
*
create_func_geometry_from_text
(
Item
*
a
);
Item
*
create_func_as_wkt
(
Item
*
a
);
Item
*
create_func_as_wkt
(
Item
*
a
);
Item
*
create_func_as_wkb
(
Item
*
a
);
Item
*
create_func_as_wkb
(
Item
*
a
);
...
@@ -138,6 +140,8 @@ Item *create_func_numgeometries(Item *a);
...
@@ -138,6 +140,8 @@ Item *create_func_numgeometries(Item *a);
Item
*
create_func_point
(
Item
*
a
,
Item
*
b
);
Item
*
create_func_point
(
Item
*
a
,
Item
*
b
);
#endif
/*HAVE_SPATIAL*/
Item
*
create_func_compress
(
Item
*
a
);
Item
*
create_func_compress
(
Item
*
a
);
Item
*
create_func_uncompress
(
Item
*
a
);
Item
*
create_func_uncompress
(
Item
*
a
);
Item
*
create_func_uncompressed_length
(
Item
*
a
);
Item
*
create_func_uncompressed_length
(
Item
*
a
);
...
...
sql/item_geofunc.cc
View file @
0c5b6c19
...
@@ -22,6 +22,8 @@
...
@@ -22,6 +22,8 @@
#endif
#endif
#include "mysql_priv.h"
#include "mysql_priv.h"
#ifdef HAVE_SPATIAL
#include "sql_acl.h"
#include "sql_acl.h"
#include <m_ctype.h>
#include <m_ctype.h>
...
@@ -651,3 +653,5 @@ longlong Item_func_srid::val_int()
...
@@ -651,3 +653,5 @@ longlong Item_func_srid::val_int()
uint32
res
=
uint4korr
(
swkb
->
ptr
());
uint32
res
=
uint4korr
(
swkb
->
ptr
());
return
(
longlong
)
res
;
return
(
longlong
)
res
;
}
}
#endif
/*HAVE_SPATIAL*/
sql/item_geofunc.h
View file @
0c5b6c19
...
@@ -17,6 +17,8 @@
...
@@ -17,6 +17,8 @@
/* This file defines all spatial functions */
/* This file defines all spatial functions */
#ifdef HAVE_SPATIAL
#ifdef __GNUC__
#ifdef __GNUC__
#pragma interface
/* gcc class implementation */
#pragma interface
/* gcc class implementation */
#endif
#endif
...
@@ -338,3 +340,12 @@ public:
...
@@ -338,3 +340,12 @@ public:
const
char
*
func_name
()
const
{
return
"srid"
;
}
const
char
*
func_name
()
const
{
return
"srid"
;
}
void
fix_length_and_dec
()
{
max_length
=
10
;
}
void
fix_length_and_dec
()
{
max_length
=
10
;
}
};
};
#define GEOM_NEW(obj_constructor) new obj_constructor
#else
/*HAVE_SPATIAL*/
#define GEOM_NEW(obj_constructor) NULL
#endif
sql/item_strfunc.cc
View file @
0c5b6c19
...
@@ -1652,7 +1652,7 @@ void Item_func_elt::fix_length_and_dec()
...
@@ -1652,7 +1652,7 @@ void Item_func_elt::fix_length_and_dec()
if
(
agg_arg_collations
(
collation
,
args
+
1
,
arg_count
-
1
))
if
(
agg_arg_collations
(
collation
,
args
+
1
,
arg_count
-
1
))
return
;
return
;
for
(
uint
i
=
1
;
i
<
arg_count
;
i
++
)
for
(
uint
i
=
1
;
i
<
arg_count
;
i
++
)
{
{
set_if_bigger
(
max_length
,
args
[
i
]
->
max_length
);
set_if_bigger
(
max_length
,
args
[
i
]
->
max_length
);
set_if_bigger
(
decimals
,
args
[
i
]
->
decimals
);
set_if_bigger
(
decimals
,
args
[
i
]
->
decimals
);
...
...
sql/lex.h
View file @
0c5b6c19
...
@@ -20,13 +20,25 @@
...
@@ -20,13 +20,25 @@
#include "lex_symbol.h"
#include "lex_symbol.h"
/* We don't want to include sql_yacc.h into gen_lex_hash */
/* We don't want to include sql_yacc.h into gen_lex_hash */
SYM_GROUP
sym_group_common
=
{
""
,
""
};
SYM_GROUP
sym_group_geom
=
{
"Spatial extentions"
,
"HAVE_SPATIAL"
};
SYM_GROUP
sym_group_rtree
=
{
"RTree keys"
,
"HAVE_RTREE_KEYS"
};
#ifdef NO_YACC_SYMBOLS
#ifdef NO_YACC_SYMBOLS
#define SYM(A) 0
#define SYM_OR_NULL(A) 0
#define CREATE_FUNC(A) 0
#else
#else
#define SYM(A) A
#define SYM_OR_NULL(A) A
#define CREATE_FUNC(A) (void*) (A)
#endif
#define SYM(A) SYM_OR_NULL(A),0,0,&sym_group_common
#define F_SYM(A) SYM_OR_NULL(A)
#define CREATE_FUNC(A) (void *)(SYM_OR_NULL(A)), &sym_group_common
#ifdef HAVE_SPATIAL
#define CREATE_FUNC_GEOM(A) (void *)(SYM_OR_NULL(A)), &sym_group_geom
#else
#define CREATE_FUNC_GEOM(A) 0, &sym_group_geom
#endif
#endif
/*
/*
...
@@ -36,639 +48,639 @@
...
@@ -36,639 +48,639 @@
*/
*/
static
SYMBOL
symbols
[]
=
{
static
SYMBOL
symbols
[]
=
{
{
"&&"
,
SYM
(
AND
)
,
0
,
0
},
{
"&&"
,
SYM
(
AND
)},
{
"<"
,
SYM
(
LT
)
,
0
,
0
},
{
"<"
,
SYM
(
LT
)},
{
"<="
,
SYM
(
LE
)
,
0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
,
SYM
(
CHAR_SYM
)
,
0
,
0
},
{
"CHARACTER"
,
SYM
(
CHAR_SYM
)},
{
"CHARSET"
,
SYM
(
CHARSET
)
,
0
,
0
},
{
"CHARSET"
,
SYM
(
CHARSET
)},
{
"CHECK"
,
SYM
(
CHECK_SYM
)
,
0
,
0
},
{
"CHECK"
,
SYM
(
CHECK_SYM
)},
{
"CHECKSUM"
,
SYM
(
CHECKSUM_SYM
)
,
0
,
0
},
{
"CHECKSUM"
,
SYM
(
CHECKSUM_SYM
)},
{
"CIPHER"
,
SYM
(
CIPHER_SYM
)
,
0
,
0
},
{
"CIPHER"
,
SYM
(
CIPHER_SYM
)},
{
"CLIENT"
,
SYM
(
CLIENT_SYM
)
,
0
,
0
},
{
"CLIENT"
,
SYM
(
CLIENT_SYM
)},
{
"CLOSE"
,
SYM
(
CLOSE_SYM
)
,
0
,
0
},
{
"CLOSE"
,
SYM
(
CLOSE_SYM
)},
{
"COLLATE"
,
SYM
(
COLLATE_SYM
)
,
0
,
0
},
{
"COLLATE"
,
SYM
(
COLLATE_SYM
)},
{
"COLLATION"
,
SYM
(
COLLATION_SYM
)
,
0
,
0
},
{
"COLLATION"
,
SYM
(
COLLATION_SYM
)},
{
"COLUMN"
,
SYM
(
COLUMN_SYM
)
,
0
,
0
},
{
"COLUMN"
,
SYM
(
COLUMN_SYM
)},
{
"COLUMNS"
,
SYM
(
COLUMNS
)
,
0
,
0
},
{
"COLUMNS"
,
SYM
(
COLUMNS
)},
{
"COMMENT"
,
SYM
(
COMMENT_SYM
)
,
0
,
0
},
{
"COMMENT"
,
SYM
(
COMMENT_SYM
)},
{
"COMMIT"
,
SYM
(
COMMIT_SYM
)
,
0
,
0
},
{
"COMMIT"
,
SYM
(
COMMIT_SYM
)},
{
"COMMITTED"
,
SYM
(
COMMITTED_SYM
)
,
0
,
0
},
{
"COMMITTED"
,
SYM
(
COMMITTED_SYM
)},
{
"COMPRESSED"
,
SYM
(
COMPRESSED_SYM
)
,
0
,
0
},
{
"COMPRESSED"
,
SYM
(
COMPRESSED_SYM
)},
{
"CONCURRENT"
,
SYM
(
CONCURRENT
)
,
0
,
0
},
{
"CONCURRENT"
,
SYM
(
CONCURRENT
)},
{
"CONSTRAINT"
,
SYM
(
CONSTRAINT
)
,
0
,
0
},
{
"CONSTRAINT"
,
SYM
(
CONSTRAINT
)},
{
"CREATE"
,
SYM
(
CREATE
)
,
0
,
0
},
{
"CREATE"
,
SYM
(
CREATE
)},
{
"CROSS"
,
SYM
(
CROSS
)
,
0
,
0
},
{
"CROSS"
,
SYM
(
CROSS
)},
{
"CUBE"
,
SYM
(
CUBE_SYM
)
,
0
,
0
},
{
"CUBE"
,
SYM
(
CUBE_SYM
)},
{
"CURRENT_DATE"
,
SYM
(
CURDATE
)
,
0
,
0
},
{
"CURRENT_DATE"
,
SYM
(
CURDATE
)},
{
"CURRENT_TIME"
,
SYM
(
CURTIME
)
,
0
,
0
},
{
"CURRENT_TIME"
,
SYM
(
CURTIME
)},
{
"CURRENT_TIMESTAMP"
,
SYM
(
NOW_SYM
)
,
0
,
0
},
{
"CURRENT_TIMESTAMP"
,
SYM
(
NOW_SYM
)},
{
"DATA"
,
SYM
(
DATA_SYM
)
,
0
,
0
},
{
"DATA"
,
SYM
(
DATA_SYM
)},
{
"DATABASE"
,
SYM
(
DATABASE
)
,
0
,
0
},
{
"DATABASE"
,
SYM
(
DATABASE
)},
{
"DATABASES"
,
SYM
(
DATABASES
)
,
0
,
0
},
{
"DATABASES"
,
SYM
(
DATABASES
)},
{
"DATE"
,
SYM
(
DATE_SYM
)
,
0
,
0
},
{
"DATE"
,
SYM
(
DATE_SYM
)},
{
"DATETIME"
,
SYM
(
DATETIME
)
,
0
,
0
},
{
"DATETIME"
,
SYM
(
DATETIME
)},
{
"DAY"
,
SYM
(
DAY_SYM
)
,
0
,
0
},
{
"DAY"
,
SYM
(
DAY_SYM
)},
{
"DAY_HOUR"
,
SYM
(
DAY_HOUR_SYM
)
,
0
,
0
},
{
"DAY_HOUR"
,
SYM
(
DAY_HOUR_SYM
)},
{
"DAY_MICROSECOND"
,
SYM
(
DAY_MICROSECOND_SYM
)
,
0
,
0
},
{
"DAY_MICROSECOND"
,
SYM
(
DAY_MICROSECOND_SYM
)},
{
"DAY_MINUTE"
,
SYM
(
DAY_MINUTE_SYM
)
,
0
,
0
},
{
"DAY_MINUTE"
,
SYM
(
DAY_MINUTE_SYM
)},
{
"DAY_SECOND"
,
SYM
(
DAY_SECOND_SYM
)
,
0
,
0
},
{
"DAY_SECOND"
,
SYM
(
DAY_SECOND_SYM
)},
{
"DEC"
,
SYM
(
DECIMAL_SYM
)
,
0
,
0
},
{
"DEC"
,
SYM
(
DECIMAL_SYM
)},
{
"DECIMAL"
,
SYM
(
DECIMAL_SYM
)
,
0
,
0
},
{
"DECIMAL"
,
SYM
(
DECIMAL_SYM
)},
{
"DEFAULT"
,
SYM
(
DEFAULT
)
,
0
,
0
},
{
"DEFAULT"
,
SYM
(
DEFAULT
)},
{
"DELAYED"
,
SYM
(
DELAYED_SYM
)
,
0
,
0
},
{
"DELAYED"
,
SYM
(
DELAYED_SYM
)},
{
"DELAY_KEY_WRITE"
,
SYM
(
DELAY_KEY_WRITE_SYM
)
,
0
,
0
},
{
"DELAY_KEY_WRITE"
,
SYM
(
DELAY_KEY_WRITE_SYM
)},
{
"DELETE"
,
SYM
(
DELETE_SYM
)
,
0
,
0
},
{
"DELETE"
,
SYM
(
DELETE_SYM
)},
{
"DESC"
,
SYM
(
DESC
)
,
0
,
0
},
{
"DESC"
,
SYM
(
DESC
)},
{
"DESCRIBE"
,
SYM
(
DESCRIBE
)
,
0
,
0
},
{
"DESCRIBE"
,
SYM
(
DESCRIBE
)},
{
"DES_KEY_FILE"
,
SYM
(
DES_KEY_FILE
)
,
0
,
0
},
{
"DES_KEY_FILE"
,
SYM
(
DES_KEY_FILE
)},
{
"DIRECTORY"
,
SYM
(
DIRECTORY_SYM
)
,
0
,
0
},
{
"DIRECTORY"
,
SYM
(
DIRECTORY_SYM
)},
{
"DISABLE"
,
SYM
(
DISABLE_SYM
)
,
0
,
0
},
{
"DISABLE"
,
SYM
(
DISABLE_SYM
)},
{
"DISCARD"
,
SYM
(
DISCARD
)
,
0
,
0
},
{
"DISCARD"
,
SYM
(
DISCARD
)},
{
"DISTINCT"
,
SYM
(
DISTINCT
)
,
0
,
0
},
{
"DISTINCT"
,
SYM
(
DISTINCT
)},
{
"DISTINCTROW"
,
SYM
(
DISTINCT
)
,
0
,
0
},
/* Access likes this */
{
"DISTINCTROW"
,
SYM
(
DISTINCT
)},
/* Access likes this */
{
"DIV"
,
SYM
(
DIV_SYM
)
,
0
,
0
},
{
"DIV"
,
SYM
(
DIV_SYM
)},
{
"DO"
,
SYM
(
DO_SYM
)
,
0
,
0
},
{
"DO"
,
SYM
(
DO_SYM
)},
{
"DOUBLE"
,
SYM
(
DOUBLE_SYM
)
,
0
,
0
},
{
"DOUBLE"
,
SYM
(
DOUBLE_SYM
)},
{
"DROP"
,
SYM
(
DROP
)
,
0
,
0
},
{
"DROP"
,
SYM
(
DROP
)},
{
"DUAL"
,
SYM
(
DUAL_SYM
)
,
0
,
0
},
{
"DUAL"
,
SYM
(
DUAL_SYM
)},
{
"DUMPFILE"
,
SYM
(
DUMPFILE
)
,
0
,
0
},
{
"DUMPFILE"
,
SYM
(
DUMPFILE
)},
{
"DUPLICATE"
,
SYM
(
DUPLICATE_SYM
)
,
0
,
0
},
{
"DUPLICATE"
,
SYM
(
DUPLICATE_SYM
)},
{
"DYNAMIC"
,
SYM
(
DYNAMIC_SYM
)
,
0
,
0
},
{
"DYNAMIC"
,
SYM
(
DYNAMIC_SYM
)},
{
"ELSE"
,
SYM
(
ELSE
)
,
0
,
0
},
{
"ELSE"
,
SYM
(
ELSE
)},
{
"ENABLE"
,
SYM
(
ENABLE_SYM
)
,
0
,
0
},
{
"ENABLE"
,
SYM
(
ENABLE_SYM
)},
{
"ENCLOSED"
,
SYM
(
ENCLOSED
)
,
0
,
0
},
{
"EN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"GEOMETRY"
,
SYM
(
GEOMETRY_SYM
)
,
0
,
0
},
{
"GEOMETRY"
,
SYM
(
GEOMETRY_SYM
)},
{
"GEOMETRYCOLLECTION"
,
SYM
(
GEOMETRYCOLLECTION
)
,
0
,
0
},
{
"GEOMETRYCOLLECTION"
,
SYM
(
GEOMETRYCOLLECTION
)},
{
"GET_FORMAT"
,
SYM
(
GET_FORMAT
)
,
0
,
0
},
{
"GET_FORMAT"
,
SYM
(
GET_FORMAT
)},
{
"GLOBAL"
,
SYM
(
GLOBAL_SYM
)
,
0
,
0
},
{
"GLOBAL"
,
SYM
(
GLOBAL_SYM
)},
{
"GRANT"
,
SYM
(
GRANT
)
,
0
,
0
},
{
"GRANT"
,
SYM
(
GRANT
)},
{
"GRANTS"
,
SYM
(
GRANTS
)
,
0
,
0
},
{
"GRANTS"
,
SYM
(
GRANTS
)},
{
"GROUP"
,
SYM
(
GROUP
)
,
0
,
0
},
{
"GROUP"
,
SYM
(
GROUP
)},
{
"HANDLER"
,
SYM
(
HANDLER_SYM
)
,
0
,
0
},
{
"HANDLER"
,
SYM
(
HANDLER_SYM
)},
{
"HASH"
,
SYM
(
HASH_SYM
)
,
0
,
0
},
{
"HASH"
,
SYM
(
HASH_SYM
)},
{
"HAVING"
,
SYM
(
HAVING
)
,
0
,
0
},
{
"HAVING"
,
SYM
(
HAVING
)},
{
"HELP"
,
SYM
(
HELP_SYM
)
,
0
,
0
},
{
"HELP"
,
SYM
(
HELP_SYM
)},
{
"HIGH_PRIORITY"
,
SYM
(
HIGH_PRIORITY
)
,
0
,
0
},
{
"HIGH_PRIORITY"
,
SYM
(
HIGH_PRIORITY
)},
{
"HOSTS"
,
SYM
(
HOSTS_SYM
)
,
0
,
0
},
{
"HOSTS"
,
SYM
(
HOSTS_SYM
)},
{
"HOUR"
,
SYM
(
HOUR_SYM
)
,
0
,
0
},
{
"HOUR"
,
SYM
(
HOUR_SYM
)},
{
"HOUR_MICROSECOND"
,
SYM
(
HOUR_MICROSECOND_SYM
)
,
0
,
0
},
{
"HOUR_MICROSECOND"
,
SYM
(
HOUR_MICROSECOND_SYM
)},
{
"HOUR_MINUTE"
,
SYM
(
HOUR_MINUTE_SYM
)
,
0
,
0
},
{
"HOUR_MINUTE"
,
SYM
(
HOUR_MINUTE_SYM
)},
{
"HOUR_SECOND"
,
SYM
(
HOUR_SECOND_SYM
)
,
0
,
0
},
{
"HOUR_SECOND"
,
SYM
(
HOUR_SECOND_SYM
)},
{
"IDENTIFIED"
,
SYM
(
IDENTIFIED_SYM
)
,
0
,
0
},
{
"IDENTIFIED"
,
SYM
(
IDENTIFIED_SYM
)},
{
"IF"
,
SYM
(
IF
)
,
0
,
0
},
{
"IF"
,
SYM
(
IF
)},
{
"IGNORE"
,
SYM
(
IGNORE_SYM
)
,
0
,
0
},
{
"IGNORE"
,
SYM
(
IGNORE_SYM
)},
{
"IMPORT"
,
SYM
(
IMPORT
)
,
0
,
0
},
{
"IMPORT"
,
SYM
(
IMPORT
)},
{
"IN"
,
SYM
(
IN_SYM
)
,
0
,
0
},
{
"IN"
,
SYM
(
IN_SYM
)},
{
"INDEX"
,
SYM
(
INDEX
)
,
0
,
0
},
{
"INDEX"
,
SYM
(
INDEX
)},
{
"INDEXES"
,
SYM
(
INDEXES
)
,
0
,
0
},
{
"INDEXES"
,
SYM
(
INDEXES
)},
{
"INFILE"
,
SYM
(
INFILE
)
,
0
,
0
},
{
"INFILE"
,
SYM
(
INFILE
)},
{
"INNER"
,
SYM
(
INNER_SYM
)
,
0
,
0
},
{
"INNER"
,
SYM
(
INNER_SYM
)},
{
"INNOBASE"
,
SYM
(
INNOBASE_SYM
)
,
0
,
0
},
{
"INNOBASE"
,
SYM
(
INNOBASE_SYM
)},
{
"INNODB"
,
SYM
(
INNOBASE_SYM
)
,
0
,
0
},
{
"INNODB"
,
SYM
(
INNOBASE_SYM
)},
{
"INSERT"
,
SYM
(
INSERT
)
,
0
,
0
},
{
"INSERT"
,
SYM
(
INSERT
)},
{
"INSERT_METHOD"
,
SYM
(
INSERT_METHOD
)
,
0
,
0
},
{
"INSERT_METHOD"
,
SYM
(
INSERT_METHOD
)},
{
"INT"
,
SYM
(
INT_SYM
)
,
0
,
0
},
{
"INT"
,
SYM
(
INT_SYM
)},
{
"INT1"
,
SYM
(
TINYINT
)
,
0
,
0
},
{
"INT1"
,
SYM
(
TINYINT
)},
{
"INT2"
,
SYM
(
SMALLINT
)
,
0
,
0
},
{
"INT2"
,
SYM
(
SMALLINT
)},
{
"INT3"
,
SYM
(
MEDIUMINT
)
,
0
,
0
},
{
"INT3"
,
SYM
(
MEDIUMINT
)},
{
"INT4"
,
SYM
(
INT_SYM
)
,
0
,
0
},
{
"INT4"
,
SYM
(
INT_SYM
)},
{
"INT8"
,
SYM
(
BIGINT
)
,
0
,
0
},
{
"INT8"
,
SYM
(
BIGINT
)},
{
"INTEGER"
,
SYM
(
INT_SYM
)
,
0
,
0
},
{
"INTEGER"
,
SYM
(
INT_SYM
)},
{
"INTERVAL"
,
SYM
(
INTERVAL_SYM
)
,
0
,
0
},
{
"INTERVAL"
,
SYM
(
INTERVAL_SYM
)},
{
"INTO"
,
SYM
(
INTO
)
,
0
,
0
},
{
"INTO"
,
SYM
(
INTO
)},
{
"IO_THREAD"
,
SYM
(
RELAY_THREAD
)
,
0
,
0
},
{
"IO_THREAD"
,
SYM
(
RELAY_THREAD
)},
{
"IS"
,
SYM
(
IS
)
,
0
,
0
},
{
"IS"
,
SYM
(
IS
)},
{
"ISOLATION"
,
SYM
(
ISOLATION
)
,
0
,
0
},
{
"ISOLATION"
,
SYM
(
ISOLATION
)},
{
"ISSUER"
,
SYM
(
ISSUER_SYM
)
,
0
,
0
},
{
"ISSUER"
,
SYM
(
ISSUER_SYM
)},
{
"JOIN"
,
SYM
(
JOIN_SYM
)
,
0
,
0
},
{
"JOIN"
,
SYM
(
JOIN_SYM
)},
{
"KEY"
,
SYM
(
KEY_SYM
)
,
0
,
0
},
{
"KEY"
,
SYM
(
KEY_SYM
)},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SYM
)},
{
"LOCKS"
,
SYM
(
LOCKS_SYM
)
,
0
,
0
},
{
"LOCKS"
,
SYM
(
LOCKS_SYM
)},
{
"LOGS"
,
SYM
(
LOGS_SYM
)
,
0
,
0
},
{
"LOGS"
,
SYM
(
LOGS_SYM
)},
{
"LONG"
,
SYM
(
LONG_SYM
)
,
0
,
0
},
{
"LONG"
,
SYM
(
LONG_SYM
)},
{
"LONGBLOB"
,
SYM
(
LONGBLOB
)
,
0
,
0
},
{
"LONGBLOB"
,
SYM
(
LONGBLOB
)},
{
"LONGTEXT"
,
SYM
(
LONGTEXT
)
,
0
,
0
},
{
"LONGTEXT"
,
SYM
(
LONGTEXT
)},
{
"LOW_PRIORITY"
,
SYM
(
LOW_PRIORITY
)
,
0
,
0
},
{
"LOW_PRIORITY"
,
SYM
(
LOW_PRIORITY
)},
{
"MASTER"
,
SYM
(
MASTER_SYM
)
,
0
,
0
},
{
"MASTER"
,
SYM
(
MASTER_SYM
)},
{
"MASTER_CONNECT_RETRY"
,
SYM
(
MASTER_CONNECT_RETRY_SYM
)
,
0
,
0
},
{
"MASTER_CONNECT_RETRY"
,
SYM
(
MASTER_CONNECT_RETRY_SYM
)},
{
"MASTER_HOST"
,
SYM
(
MASTER_HOST_SYM
)
,
0
,
0
},
{
"MASTER_HOST"
,
SYM
(
MASTER_HOST_SYM
)},
{
"MASTER_LOG_FILE"
,
SYM
(
MASTER_LOG_FILE_SYM
)
,
0
,
0
},
{
"MASTER_LOG_FILE"
,
SYM
(
MASTER_LOG_FILE_SYM
)},
{
"MASTER_LOG_POS"
,
SYM
(
MASTER_LOG_POS_SYM
)
,
0
,
0
},
{
"MASTER_LOG_POS"
,
SYM
(
MASTER_LOG_POS_SYM
)},
{
"MASTER_PASSWORD"
,
SYM
(
MASTER_PASSWORD_SYM
)
,
0
,
0
},
{
"MASTER_PASSWORD"
,
SYM
(
MASTER_PASSWORD_SYM
)},
{
"MASTER_PORT"
,
SYM
(
MASTER_PORT_SYM
)
,
0
,
0
},
{
"MASTER_PORT"
,
SYM
(
MASTER_PORT_SYM
)},
{
"MASTER_SERVER_ID"
,
SYM
(
MASTER_SERVER_ID_SYM
)
,
0
,
0
},
{
"MASTER_SERVER_ID"
,
SYM
(
MASTER_SERVER_ID_SYM
)},
{
"MASTER_SSL"
,
SYM
(
MASTER_SSL_SYM
)
,
0
,
0
},
{
"MASTER_SSL"
,
SYM
(
MASTER_SSL_SYM
)},
{
"MASTER_SSL_CA"
,
SYM
(
MASTER_SSL_CA_SYM
)
,
0
,
0
},
{
"MASTER_SSL_CA"
,
SYM
(
MASTER_SSL_CA_SYM
)},
{
"MASTER_SSL_CAPATH"
,
SYM
(
MASTER_SSL_CAPATH_SYM
)
,
0
,
0
},
{
"MASTER_SSL_CAPATH"
,
SYM
(
MASTER_SSL_CAPATH_SYM
)},
{
"MASTER_SSL_CERT"
,
SYM
(
MASTER_SSL_CERT_SYM
)
,
0
,
0
},
{
"MASTER_SSL_CERT"
,
SYM
(
MASTER_SSL_CERT_SYM
)},
{
"MASTER_SSL_CIPHER"
,
SYM
(
MASTER_SSL_CIPHER_SYM
)
,
0
,
0
},
{
"MASTER_SSL_CIPHER"
,
SYM
(
MASTER_SSL_CIPHER_SYM
)},
{
"MASTER_SSL_KEY"
,
SYM
(
MASTER_SSL_KEY_SYM
)
,
0
,
0
},
{
"MASTER_SSL_KEY"
,
SYM
(
MASTER_SSL_KEY_SYM
)},
{
"MASTER_USER"
,
SYM
(
MASTER_USER_SYM
)
,
0
,
0
},
{
"MASTER_USER"
,
SYM
(
MASTER_USER_SYM
)},
{
"MATCH"
,
SYM
(
MATCH
)
,
0
,
0
},
{
"MATCH"
,
SYM
(
MATCH
)},
{
"MAX_CONNECTIONS_PER_HOUR"
,
SYM
(
MAX_CONNECTIONS_PER_HOUR
)
,
0
,
0
},
{
"MAX_CONNECTIONS_PER_HOUR"
,
SYM
(
MAX_CONNECTIONS_PER_HOUR
)},
{
"MAX_QUERIES_PER_HOUR"
,
SYM
(
MAX_QUERIES_PER_HOUR
)
,
0
,
0
},
{
"MAX_QUERIES_PER_HOUR"
,
SYM
(
MAX_QUERIES_PER_HOUR
)},
{
"MAX_ROWS"
,
SYM
(
MAX_ROWS
)
,
0
,
0
},
{
"MAX_ROWS"
,
SYM
(
MAX_ROWS
)},
{
"MAX_UPDATES_PER_HOUR"
,
SYM
(
MAX_UPDATES_PER_HOUR
)
,
0
,
0
},
{
"MAX_UPDATES_PER_HOUR"
,
SYM
(
MAX_UPDATES_PER_HOUR
)},
{
"MEDIUM"
,
SYM
(
MEDIUM_SYM
)
,
0
,
0
},
{
"MEDIUM"
,
SYM
(
MEDIUM_SYM
)},
{
"MEDIUMBLOB"
,
SYM
(
MEDIUMBLOB
)
,
0
,
0
},
{
"MEDIUMBLOB"
,
SYM
(
MEDIUMBLOB
)},
{
"MEDIUMINT"
,
SYM
(
MEDIUMINT
)
,
0
,
0
},
{
"MEDIUMINT"
,
SYM
(
MEDIUMINT
)},
{
"MEDIUMTEXT"
,
SYM
(
MEDIUMTEXT
)
,
0
,
0
},
{
"MEDIUMTEXT"
,
SYM
(
MEDIUMTEXT
)},
{
"MICROSECOND"
,
SYM
(
MICROSECOND_SYM
)
,
0
,
0
},
{
"MICROSECOND"
,
SYM
(
MICROSECOND_SYM
)},
{
"MIDDLEINT"
,
SYM
(
MEDIUMINT
)
,
0
,
0
},
/* For powerbuilder */
{
"MIDDLEINT"
,
SYM
(
MEDIUMINT
)},
/* For powerbuilder */
{
"MINUTE"
,
SYM
(
MINUTE_SYM
)
,
0
,
0
},
{
"MINUTE"
,
SYM
(
MINUTE_SYM
)},
{
"MINUTE_MICROSECOND"
,
SYM
(
MINUTE_MICROSECOND_SYM
)
,
0
,
0
},
{
"MINUTE_MICROSECOND"
,
SYM
(
MINUTE_MICROSECOND_SYM
)},
{
"MINUTE_SECOND"
,
SYM
(
MINUTE_SECOND_SYM
)
,
0
,
0
},
{
"MINUTE_SECOND"
,
SYM
(
MINUTE_SECOND_SYM
)},
{
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
},
{
"ORDER"
,
SYM
(
ORDER_SYM
)},
{
"OUTER"
,
SYM
(
OUTER
)
,
0
,
0
},
{
"OUTER"
,
SYM
(
OUTER
)},
{
"OUTFILE"
,
SYM
(
OUTFILE
)
,
0
,
0
},
{
"OUTFILE"
,
SYM
(
OUTFILE
)},
{
"PACK_KEYS"
,
SYM
(
PACK_KEYS_SYM
)
,
0
,
0
},
{
"PACK_KEYS"
,
SYM
(
PACK_KEYS_SYM
)},
{
"PARTIAL"
,
SYM
(
PARTIAL
)
,
0
,
0
},
{
"PARTIAL"
,
SYM
(
PARTIAL
)},
{
"PASSWORD"
,
SYM
(
PASSWORD
)
,
0
,
0
},
{
"PASSWORD"
,
SYM
(
PASSWORD
)},
{
"POINT"
,
SYM
(
POINT_SYM
)
,
0
,
0
},
{
"POINT"
,
SYM
(
POINT_SYM
)},
{
"POLYGON"
,
SYM
(
POLYGON
)
,
0
,
0
},
{
"POLYGON"
,
SYM
(
POLYGON
)},
{
"PRECISION"
,
SYM
(
PRECISION
)
,
0
,
0
},
{
"PRECISION"
,
SYM
(
PRECISION
)},
{
"PREV"
,
SYM
(
PREV_SYM
)
,
0
,
0
},
{
"PREV"
,
SYM
(
PREV_SYM
)},
{
"PRIMARY"
,
SYM
(
PRIMARY_SYM
)
,
0
,
0
},
{
"PRIMARY"
,
SYM
(
PRIMARY_SYM
)},
{
"PRIVILEGES"
,
SYM
(
PRIVILEGES
)
,
0
,
0
},
{
"PRIVILEGES"
,
SYM
(
PRIVILEGES
)},
{
"PROCEDURE"
,
SYM
(
PROCEDURE
)
,
0
,
0
},
{
"PROCEDURE"
,
SYM
(
PROCEDURE
)},
{
"PROCESS"
,
SYM
(
PROCESS
)
,
0
,
0
},
{
"PROCESS"
,
SYM
(
PROCESS
)},
{
"PROCESSLIST"
,
SYM
(
PROCESSLIST_SYM
)
,
0
,
0
},
{
"PROCESSLIST"
,
SYM
(
PROCESSLIST_SYM
)},
{
"PURGE"
,
SYM
(
PURGE
)
,
0
,
0
},
{
"PURGE"
,
SYM
(
PURGE
)},
{
"QUERY"
,
SYM
(
QUERY_SYM
)
,
0
,
0
},
{
"QUERY"
,
SYM
(
QUERY_SYM
)},
{
"QUICK"
,
SYM
(
QUICK
)
,
0
,
0
},
{
"QUICK"
,
SYM
(
QUICK
)},
{
"RAID0"
,
SYM
(
RAID_0_SYM
)
,
0
,
0
},
{
"RAID0"
,
SYM
(
RAID_0_SYM
)},
{
"RAID_CHUNKS"
,
SYM
(
RAID_CHUNKS
)
,
0
,
0
},
{
"RAID_CHUNKS"
,
SYM
(
RAID_CHUNKS
)},
{
"RAID_CHUNKSIZE"
,
SYM
(
RAID_CHUNKSIZE
)
,
0
,
0
},
{
"RAID_CHUNKSIZE"
,
SYM
(
RAID_CHUNKSIZE
)},
{
"RAID_TYPE"
,
SYM
(
RAID_TYPE
)
,
0
,
0
},
{
"RAID_TYPE"
,
SYM
(
RAID_TYPE
)},
{
"READ"
,
SYM
(
READ_SYM
)
,
0
,
0
},
{
"READ"
,
SYM
(
READ_SYM
)},
{
"REAL"
,
SYM
(
REAL
)
,
0
,
0
},
{
"REAL"
,
SYM
(
REAL
)},
{
"REFERENCES"
,
SYM
(
REFERENCES
)
,
0
,
0
},
{
"REFERENCES"
,
SYM
(
REFERENCES
)},
{
"REGEXP"
,
SYM
(
REGEXP
)
,
0
,
0
},
{
"REGEXP"
,
SYM
(
REGEXP
)},
{
"RELAY_LOG_FILE"
,
SYM
(
RELAY_LOG_FILE_SYM
)
,
0
,
0
},
{
"RELAY_LOG_FILE"
,
SYM
(
RELAY_LOG_FILE_SYM
)},
{
"RELAY_LOG_POS"
,
SYM
(
RELAY_LOG_POS_SYM
)
,
0
,
0
},
{
"RELAY_LOG_POS"
,
SYM
(
RELAY_LOG_POS_SYM
)},
{
"RELAY_THREAD"
,
SYM
(
RELAY_THREAD
)
,
0
,
0
},
{
"RELAY_THREAD"
,
SYM
(
RELAY_THREAD
)},
{
"RELOAD"
,
SYM
(
RELOAD
)
,
0
,
0
},
{
"RELOAD"
,
SYM
(
RELOAD
)},
{
"RENAME"
,
SYM
(
RENAME
)
,
0
,
0
},
{
"RENAME"
,
SYM
(
RENAME
)},
{
"REPAIR"
,
SYM
(
REPAIR
)
,
0
,
0
},
{
"REPAIR"
,
SYM
(
REPAIR
)},
{
"REPEATABLE"
,
SYM
(
REPEATABLE_SYM
)
,
0
,
0
},
{
"REPEATABLE"
,
SYM
(
REPEATABLE_SYM
)},
{
"REPLACE"
,
SYM
(
REPLACE
)
,
0
,
0
},
{
"REPLACE"
,
SYM
(
REPLACE
)},
{
"REPLICATION"
,
SYM
(
REPLICATION
)
,
0
,
0
},
{
"REPLICATION"
,
SYM
(
REPLICATION
)},
{
"REQUIRE"
,
SYM
(
REQUIRE_SYM
)
,
0
,
0
},
{
"REQUIRE"
,
SYM
(
REQUIRE_SYM
)},
{
"RESET"
,
SYM
(
RESET_SYM
)
,
0
,
0
},
{
"RESET"
,
SYM
(
RESET_SYM
)},
{
"RESTORE"
,
SYM
(
RESTORE_SYM
)
,
0
,
0
},
{
"RESTORE"
,
SYM
(
RESTORE_SYM
)},
{
"RESTRICT"
,
SYM
(
RESTRICT
)
,
0
,
0
},
{
"RESTRICT"
,
SYM
(
RESTRICT
)},
{
"RETURNS"
,
SYM
(
UDF_RETURNS_SYM
)
,
0
,
0
},
{
"RETURNS"
,
SYM
(
UDF_RETURNS_SYM
)},
{
"REVOKE"
,
SYM
(
REVOKE
)
,
0
,
0
},
{
"REVOKE"
,
SYM
(
REVOKE
)},
{
"RIGHT"
,
SYM
(
RIGHT
)
,
0
,
0
},
{
"RIGHT"
,
SYM
(
RIGHT
)},
{
"RLIKE"
,
SYM
(
REGEXP
)
,
0
,
0
},
/* Like in mSQL2 */
{
"RLIKE"
,
SYM
(
REGEXP
)},
/* Like in mSQL2 */
{
"ROLLBACK"
,
SYM
(
ROLLBACK_SYM
)
,
0
,
0
},
{
"ROLLBACK"
,
SYM
(
ROLLBACK_SYM
)},
{
"ROLLUP"
,
SYM
(
ROLLUP_SYM
)
,
0
,
0
},
{
"ROLLUP"
,
SYM
(
ROLLUP_SYM
)},
{
"ROW"
,
SYM
(
ROW_SYM
)
,
0
,
0
},
{
"ROW"
,
SYM
(
ROW_SYM
)},
{
"ROWS"
,
SYM
(
ROWS_SYM
)
,
0
,
0
},
{
"ROWS"
,
SYM
(
ROWS_SYM
)},
{
"ROW_FORMAT"
,
SYM
(
ROW_FORMAT_SYM
)
,
0
,
0
},
{
"ROW_FORMAT"
,
SYM
(
ROW_FORMAT_SYM
)},
{
"RTREE"
,
SYM
(
RTREE_SYM
)
,
0
,
0
},
{
"RTREE"
,
SYM
(
RTREE_SYM
)},
{
"SAVEPOINT"
,
SYM
(
SAVEPOINT_SYM
)
,
0
,
0
},
{
"SAVEPOINT"
,
SYM
(
SAVEPOINT_SYM
)},
{
"SECOND"
,
SYM
(
SECOND_SYM
)
,
0
,
0
},
{
"SECOND"
,
SYM
(
SECOND_SYM
)},
{
"SECOND_MICROSECOND"
,
SYM
(
SECOND_MICROSECOND_SYM
)
,
0
,
0
},
{
"SECOND_MICROSECOND"
,
SYM
(
SECOND_MICROSECOND_SYM
)},
{
"SELECT"
,
SYM
(
SELECT_SYM
)
,
0
,
0
},
{
"SELECT"
,
SYM
(
SELECT_SYM
)},
{
"SEPARATOR"
,
SYM
(
SEPARATOR_SYM
)
,
0
,
0
},
{
"SEPARATOR"
,
SYM
(
SEPARATOR_SYM
)},
{
"SERIAL"
,
SYM
(
SERIAL_SYM
)
,
0
,
0
},
{
"SERIAL"
,
SYM
(
SERIAL_SYM
)},
{
"SERIALIZABLE"
,
SYM
(
SERIALIZABLE_SYM
)
,
0
,
0
},
{
"SERIALIZABLE"
,
SYM
(
SERIALIZABLE_SYM
)},
{
"SESSION"
,
SYM
(
SESSION_SYM
)
,
0
,
0
},
{
"SESSION"
,
SYM
(
SESSION_SYM
)},
{
"SET"
,
SYM
(
SET
)
,
0
,
0
},
{
"SET"
,
SYM
(
SET
)},
{
"SH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E_SYM
)},
{
"SQL_CALC_FOUND_ROWS"
,
SYM
(
SQL_CALC_FOUND_ROWS
)
,
0
,
0
},
{
"SQL_CALC_FOUND_ROWS"
,
SYM
(
SQL_CALC_FOUND_ROWS
)},
{
"SQL_NO_CACHE"
,
SYM
(
SQL_NO_CACHE_SYM
)
,
0
,
0
},
{
"SQL_NO_CACHE"
,
SYM
(
SQL_NO_CACHE_SYM
)},
{
"SQL_SMALL_RESULT"
,
SYM
(
SQL_SMALL_RESULT
)
,
0
,
0
},
{
"SQL_SMALL_RESULT"
,
SYM
(
SQL_SMALL_RESULT
)},
{
"SQL_THREAD"
,
SYM
(
SQL_THREAD
)
,
0
,
0
},
{
"SQL_THREAD"
,
SYM
(
SQL_THREAD
)},
{
"SSL"
,
SYM
(
SSL_SYM
)
,
0
,
0
},
{
"SSL"
,
SYM
(
SSL_SYM
)},
{
"START"
,
SYM
(
START_SYM
)
,
0
,
0
},
{
"START"
,
SYM
(
START_SYM
)},
{
"STARTING"
,
SYM
(
STARTING
)
,
0
,
0
},
{
"STARTING"
,
SYM
(
STARTING
)},
{
"STATUS"
,
SYM
(
STATUS_SYM
)
,
0
,
0
},
{
"STATUS"
,
SYM
(
STATUS_SYM
)},
{
"STOP"
,
SYM
(
STOP_SYM
)
,
0
,
0
},
{
"STOP"
,
SYM
(
STOP_SYM
)},
{
"STORAGE"
,
SYM
(
STORAGE_SYM
)
,
0
,
0
},
{
"STORAGE"
,
SYM
(
STORAGE_SYM
)},
{
"STRAIGHT_JOIN"
,
SYM
(
STRAIGHT_JOIN
)
,
0
,
0
},
{
"STRAIGHT_JOIN"
,
SYM
(
STRAIGHT_JOIN
)},
{
"STRING"
,
SYM
(
STRING_SYM
)
,
0
,
0
},
{
"STRING"
,
SYM
(
STRING_SYM
)},
{
"STRIPED"
,
SYM
(
RAID_STRIPED_SYM
)
,
0
,
0
},
{
"STRIPED"
,
SYM
(
RAID_STRIPED_SYM
)},
{
"SUBJECT"
,
SYM
(
SUBJECT_SYM
)
,
0
,
0
},
{
"SUBJECT"
,
SYM
(
SUBJECT_SYM
)},
{
"SUPER"
,
SYM
(
SUPER_SYM
)
,
0
,
0
},
{
"SUPER"
,
SYM
(
SUPER_SYM
)},
{
"TABLE"
,
SYM
(
TABLE_SYM
)
,
0
,
0
},
{
"TABLE"
,
SYM
(
TABLE_SYM
)},
{
"TABLES"
,
SYM
(
TABLES
)
,
0
,
0
},
{
"TABLES"
,
SYM
(
TABLES
)},
{
"TABLESPACE"
,
SYM
(
TABLESPACE
)
,
0
,
0
},
{
"TABLESPACE"
,
SYM
(
TABLESPACE
)},
{
"TEMPORARY"
,
SYM
(
TEMPORARY
)
,
0
,
0
},
{
"TEMPORARY"
,
SYM
(
TEMPORARY
)},
{
"TERMINATED"
,
SYM
(
TERMINATED
)
,
0
,
0
},
{
"TERMINATED"
,
SYM
(
TERMINATED
)},
{
"TEXT"
,
SYM
(
TEXT_SYM
)
,
0
,
0
},
{
"TEXT"
,
SYM
(
TEXT_SYM
)},
{
"THEN"
,
SYM
(
THEN_SYM
)
,
0
,
0
},
{
"THEN"
,
SYM
(
THEN_SYM
)},
{
"TIME"
,
SYM
(
TIME_SYM
)
,
0
,
0
},
{
"TIME"
,
SYM
(
TIME_SYM
)},
{
"TIMESTAMP"
,
SYM
(
TIMESTAMP
)
,
0
,
0
},
{
"TIMESTAMP"
,
SYM
(
TIMESTAMP
)},
{
"TINYBLOB"
,
SYM
(
TINYBLOB
)
,
0
,
0
},
{
"TINYBLOB"
,
SYM
(
TINYBLOB
)},
{
"TINYINT"
,
SYM
(
TINYINT
)
,
0
,
0
},
{
"TINYINT"
,
SYM
(
TINYINT
)},
{
"TINYTEXT"
,
SYM
(
TINYTEXT
)
,
0
,
0
},
{
"TINYTEXT"
,
SYM
(
TINYTEXT
)},
{
"TO"
,
SYM
(
TO_SYM
)
,
0
,
0
},
{
"TO"
,
SYM
(
TO_SYM
)},
{
"TRAILING"
,
SYM
(
TRAILING
)
,
0
,
0
},
{
"TRAIL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"USE"
,
SYM
(
USE_SYM
)
,
0
,
0
},
{
"USE"
,
SYM
(
USE_SYM
)},
{
"USER"
,
SYM
(
USER
)
,
0
,
0
},
{
"USER"
,
SYM
(
USER
)},
{
"USER_RESOURCES"
,
SYM
(
RESOURCES
)
,
0
,
0
},
{
"USER_RESOURCES"
,
SYM
(
RESOURCES
)},
{
"USE_FRM"
,
SYM
(
USE_FRM
)
,
0
,
0
},
{
"USE_FRM"
,
SYM
(
USE_FRM
)},
{
"USING"
,
SYM
(
USING
)
,
0
,
0
},
{
"USING"
,
SYM
(
USING
)},
{
"UTC_DATE"
,
SYM
(
UTC_DATE_SYM
)
,
0
,
0
},
{
"UTC_DATE"
,
SYM
(
UTC_DATE_SYM
)},
{
"UTC_TIME"
,
SYM
(
UTC_TIME_SYM
)
,
0
,
0
},
{
"UTC_TIME"
,
SYM
(
UTC_TIME_SYM
)},
{
"UTC_TIMESTAMP"
,
SYM
(
UTC_TIMESTAMP_SYM
)
,
0
,
0
},
{
"UTC_TIMESTAMP"
,
SYM
(
UTC_TIMESTAMP_SYM
)},
{
"VALUE"
,
SYM
(
VALUE_SYM
)
,
0
,
0
},
{
"VALUE"
,
SYM
(
VALUE_SYM
)},
{
"VALUES"
,
SYM
(
VALUES
)
,
0
,
0
},
{
"VALUES"
,
SYM
(
VALUES
)},
{
"VARBINARY"
,
SYM
(
VARBINARY
)
,
0
,
0
},
{
"VARBINARY"
,
SYM
(
VARBINARY
)},
{
"VARCHAR"
,
SYM
(
VARCHAR
)
,
0
,
0
},
{
"VARCHAR"
,
SYM
(
VARCHAR
)},
{
"VARCHARACTER"
,
SYM
(
VARCHAR
)
,
0
,
0
},
{
"VARCHARACTER"
,
SYM
(
VARCHAR
)},
{
"VARIABLES"
,
SYM
(
VARIABLES
)
,
0
,
0
},
{
"VARIABLES"
,
SYM
(
VARIABLES
)},
{
"VARYING"
,
SYM
(
VARYING
)
,
0
,
0
},
{
"VARYING"
,
SYM
(
VARYING
)},
{
"WARNINGS"
,
SYM
(
WARNINGS
)
,
0
,
0
},
{
"WARNINGS"
,
SYM
(
WARNINGS
)},
{
"WHEN"
,
SYM
(
WHEN_SYM
)
,
0
,
0
},
{
"WHEN"
,
SYM
(
WHEN_SYM
)},
{
"WHERE"
,
SYM
(
WHERE
)
,
0
,
0
},
{
"WHERE"
,
SYM
(
WHERE
)},
{
"WITH"
,
SYM
(
WITH
)
,
0
,
0
},
{
"WITH"
,
SYM
(
WITH
)},
{
"WORK"
,
SYM
(
WORK_SYM
)
,
0
,
0
},
{
"WORK"
,
SYM
(
WORK_SYM
)},
{
"WRITE"
,
SYM
(
WRITE_SYM
)
,
0
,
0
},
{
"WRITE"
,
SYM
(
WRITE_SYM
)},
{
"X509"
,
SYM
(
X509_SYM
)
,
0
,
0
},
{
"X509"
,
SYM
(
X509_SYM
)},
{
"XOR"
,
SYM
(
XOR
)
,
0
,
0
},
{
"XOR"
,
SYM
(
XOR
)},
{
"YEAR"
,
SYM
(
YEAR_SYM
)
,
0
,
0
},
{
"YEAR"
,
SYM
(
YEAR_SYM
)},
{
"YEAR_MONTH"
,
SYM
(
YEAR_MONTH_SYM
)
,
0
,
0
},
{
"YEAR_MONTH"
,
SYM
(
YEAR_MONTH_SYM
)},
{
"ZEROFILL"
,
SYM
(
ZEROFILL
)
,
0
,
0
},
{
"ZEROFILL"
,
SYM
(
ZEROFILL
)},
{
"||"
,
SYM
(
OR_OR_CONCAT
)
,
0
,
0
}
{
"||"
,
SYM
(
OR_OR_CONCAT
)}
};
};
static
SYMBOL
sql_functions
[]
=
{
static
SYMBOL
sql_functions
[]
=
{
{
"ABS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_abs
)},
{
"ABS"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_abs
)},
{
"ACOS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_acos
)},
{
"ACOS"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_acos
)},
{
"ADDDATE"
,
SYM
(
ADDDATE_SYM
)
,
0
,
0
},
{
"ADDDATE"
,
SYM
(
ADDDATE_SYM
)},
{
"ADDTIME"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_addtime
)},
{
"ADDTIME"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_addtime
)},
{
"AES_ENCRYPT"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_aes_encrypt
)},
{
"AES_ENCRYPT"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_aes_encrypt
)},
{
"AES_DECRYPT"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_aes_decrypt
)},
{
"AES_DECRYPT"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_aes_decrypt
)},
{
"AREA"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_area
)},
{
"AREA"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_area
)},
{
"ASIN"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_asin
)},
{
"ASIN"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_asin
)},
{
"ASBINARY"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_as_wkb
)},
{
"ASBINARY"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_as_wkb
)},
{
"ASTEXT"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_as_wkt
)},
{
"ASTEXT"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_as_wkt
)},
{
"ASWKB"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_as_wkb
)},
{
"ASWKB"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_as_wkb
)},
{
"ASWKT"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_as_wkt
)},
{
"ASWKT"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_as_wkt
)},
{
"ATAN"
,
SYM
(
ATAN
)
,
0
,
0
},
{
"ATAN"
,
SYM
(
ATAN
)},
{
"ATAN2"
,
SYM
(
ATAN
)
,
0
,
0
},
{
"ATAN2"
,
SYM
(
ATAN
)},
{
"BENCHMARK"
,
SYM
(
BENCHMARK_SYM
)
,
0
,
0
},
{
"BENCHMARK"
,
SYM
(
BENCHMARK_SYM
)},
{
"BIN"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_bin
)},
{
"BIN"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_bin
)},
{
"BIT_COUNT"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_bit_count
)},
{
"BIT_COUNT"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_bit_count
)},
{
"BIT_OR"
,
SYM
(
BIT_OR
)
,
0
,
0
},
{
"BIT_OR"
,
SYM
(
BIT_OR
)},
{
"BIT_AND"
,
SYM
(
BIT_AND
)
,
0
,
0
},
{
"BIT_AND"
,
SYM
(
BIT_AND
)},
{
"BIT_XOR"
,
SYM
(
BIT_XOR
)
,
0
,
0
},
{
"BIT_XOR"
,
SYM
(
BIT_XOR
)},
{
"CAST"
,
SYM
(
CAST_SYM
)
,
0
,
0
},
{
"CAST"
,
SYM
(
CAST_SYM
)},
{
"CEIL"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ceiling
)},
{
"CEIL"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ceiling
)},
{
"CEILING"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ceiling
)},
{
"CEILING"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ceiling
)},
{
"CURRENT_USER"
,
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_current_user
)},
{
"CURRENT_USER"
,
F_
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_current_user
)},
{
"BIT_LENGTH"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_bit_length
)},
{
"BIT_LENGTH"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_bit_length
)},
{
"CENTROID"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_centroid
)},
{
"CENTROID"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_centroid
)},
{
"CHAR_LENGTH"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_char_length
)},
{
"CHAR_LENGTH"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_char_length
)},
{
"CHARACTER_LENGTH"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_char_length
)},
{
"CHARACTER_LENGTH"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_char_length
)},
{
"COALESCE"
,
SYM
(
COALESCE
)
,
0
,
0
},
{
"COALESCE"
,
SYM
(
COALESCE
)},
{
"COERCIBILITY"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_coercibility
)},
{
"COERCIBILITY"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_coercibility
)},
{
"COMPRESS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_compress
)},
{
"COMPRESS"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_compress
)},
{
"CONCAT"
,
SYM
(
CONCAT
)
,
0
,
0
},
{
"CONCAT"
,
SYM
(
CONCAT
)},
{
"CONCAT_WS"
,
SYM
(
CONCAT_WS
)
,
0
,
0
},
{
"CONCAT_WS"
,
SYM
(
CONCAT_WS
)},
{
"CONNECTION_ID"
,
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_connection_id
)},
{
"CONNECTION_ID"
,
F_
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_connection_id
)},
{
"CONTAINS"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_contains
)},
{
"CONTAINS"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_contains
)},
{
"CONV"
,
SYM
(
FUNC_ARG3
),
0
,
CREATE_FUNC
(
create_func_conv
)},
{
"CONV"
,
F_
SYM
(
FUNC_ARG3
),
0
,
CREATE_FUNC
(
create_func_conv
)},
{
"CONVERT"
,
SYM
(
CONVERT_SYM
)
,
0
,
0
},
{
"CONVERT"
,
SYM
(
CONVERT_SYM
)},
{
"COUNT"
,
SYM
(
COUNT_SYM
)
,
0
,
0
},
{
"COUNT"
,
SYM
(
COUNT_SYM
)},
{
"COS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_cos
)},
{
"COS"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_cos
)},
{
"COT"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_cot
)},
{
"COT"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_cot
)},
{
"CRC32"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_crc32
)},
{
"CRC32"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_crc32
)},
{
"CROSSES"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_crosses
)},
{
"CROSSES"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_crosses
)},
{
"CURDATE"
,
SYM
(
CURDATE
)
,
0
,
0
},
{
"CURDATE"
,
SYM
(
CURDATE
)},
{
"CURTIME"
,
SYM
(
CURTIME
)
,
0
,
0
},
{
"CURTIME"
,
SYM
(
CURTIME
)},
{
"DATE_ADD"
,
SYM
(
DATE_ADD_INTERVAL
)
,
0
,
0
},
{
"DATE_ADD"
,
SYM
(
DATE_ADD_INTERVAL
)},
{
"DATEDIFF"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_datediff
)},
{
"DATEDIFF"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_datediff
)},
{
"DATE_FORMAT"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_date_format
)},
{
"DATE_FORMAT"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_date_format
)},
{
"DATE_SUB"
,
SYM
(
DATE_SUB_INTERVAL
)
,
0
,
0
},
{
"DATE_SUB"
,
SYM
(
DATE_SUB_INTERVAL
)},
{
"DAYNAME"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_dayname
)},
{
"DAYNAME"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_dayname
)},
{
"DAYOFMONTH"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_dayofmonth
)},
{
"DAYOFMONTH"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_dayofmonth
)},
{
"DAYOFWEEK"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_dayofweek
)},
{
"DAYOFWEEK"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_dayofweek
)},
{
"DAYOFYEAR"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_dayofyear
)},
{
"DAYOFYEAR"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_dayofyear
)},
{
"DECODE"
,
SYM
(
DECODE_SYM
)
,
0
,
0
},
{
"DECODE"
,
SYM
(
DECODE_SYM
)},
{
"DEGREES"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_degrees
)},
{
"DEGREES"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_degrees
)},
{
"DES_ENCRYPT"
,
SYM
(
DES_ENCRYPT_SYM
)
,
0
,
0
},
{
"DES_ENCRYPT"
,
SYM
(
DES_ENCRYPT_SYM
)},
{
"DES_DECRYPT"
,
SYM
(
DES_DECRYPT_SYM
)
,
0
,
0
},
{
"DES_DECRYPT"
,
SYM
(
DES_DECRYPT_SYM
)},
{
"DIMENSION"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_dimension
)},
{
"DIMENSION"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_dimension
)},
{
"DISJOINT"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_disjoint
)},
{
"DISJOINT"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_disjoint
)},
{
"ELT"
,
SYM
(
ELT_FUNC
)
,
0
,
0
},
{
"ELT"
,
SYM
(
ELT_FUNC
)},
{
"ENCODE"
,
SYM
(
ENCODE_SYM
)
,
0
,
0
},
{
"ENCODE"
,
SYM
(
ENCODE_SYM
)},
{
"ENCRYPT"
,
SYM
(
ENCRYPT
)
,
0
,
0
},
{
"ENCRYPT"
,
SYM
(
ENCRYPT
)},
{
"ENDPOINT"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_endpoint
)},
{
"ENDPOINT"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_endpoint
)},
{
"ENVELOPE"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_envelope
)},
{
"ENVELOPE"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_envelope
)},
{
"EQUALS"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_equals
)},
{
"EQUALS"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_equals
)},
{
"EXTERIORRING"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_exteriorring
)},
{
"EXTERIORRING"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_exteriorring
)},
{
"EXTRACT"
,
SYM
(
EXTRACT_SYM
)
,
0
,
0
},
{
"EXTRACT"
,
SYM
(
EXTRACT_SYM
)},
{
"EXP"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_exp
)},
{
"EXP"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_exp
)},
{
"EXPORT_SET"
,
SYM
(
EXPORT_SET
)
,
0
,
0
},
{
"EXPORT_SET"
,
SYM
(
EXPORT_SET
)},
{
"FIELD"
,
SYM
(
FIELD_FUNC
)
,
0
,
0
},
/* For compability */
{
"FIELD"
,
SYM
(
FIELD_FUNC
)},
/* For compability */
{
"FIND_IN_SET"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_find_in_set
)},
{
"FIND_IN_SET"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_find_in_set
)},
{
"FLOOR"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_floor
)},
{
"FLOOR"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_floor
)},
{
"FORMAT"
,
SYM
(
FORMAT_SYM
)
,
0
,
0
},
{
"FORMAT"
,
SYM
(
FORMAT_SYM
)},
{
"FOUND_ROWS"
,
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_found_rows
)},
{
"FOUND_ROWS"
,
F_
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_found_rows
)},
{
"FROM_DAYS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_from_days
)},
{
"FROM_DAYS"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_from_days
)},
{
"FROM_UNIXTIME"
,
SYM
(
FROM_UNIXTIME
)
,
0
,
0
},
{
"FROM_UNIXTIME"
,
SYM
(
FROM_UNIXTIME
)},
{
"GET_LOCK"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_get_lock
)},
{
"GET_LOCK"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_get_lock
)},
{
"GEOMETRYN"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_geometryn
)},
{
"GEOMETRYN"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_geometryn
)},
{
"GEOMETRYTYPE"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_geometry_type
)},
{
"GEOMETRYTYPE"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_geometry_type
)},
{
"GEOMCOLLFROMTEXT"
,
SYM
(
GEOMCOLLFROMTEXT
)
,
0
,
0
},
{
"GEOMCOLLFROMTEXT"
,
SYM
(
GEOMCOLLFROMTEXT
)},
{
"GEOMCOLLFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"GEOMCOLLFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"GEOMETRYCOLLECTIONFROMTEXT"
,
SYM
(
GEOMCOLLFROMTEXT
)
,
0
,
0
},
{
"GEOMETRYCOLLECTIONFROMTEXT"
,
SYM
(
GEOMCOLLFROMTEXT
)},
{
"GEOMETRYCOLLECTIONFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"GEOMETRYCOLLECTIONFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"GEOMETRYFROMTEXT"
,
SYM
(
GEOMFROMTEXT
)
,
0
,
0
},
{
"GEOMETRYFROMTEXT"
,
SYM
(
GEOMFROMTEXT
)},
{
"GEOMETRYFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"GEOMETRYFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"GEOMFROMTEXT"
,
SYM
(
GEOMFROMTEXT
)
,
0
,
0
},
{
"GEOMFROMTEXT"
,
SYM
(
GEOMFROMTEXT
)},
{
"GEOMFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"GEOMFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"GLENGTH"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_glength
)},
{
"GLENGTH"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_glength
)},
{
"GREATEST"
,
SYM
(
GREATEST_SYM
)
,
0
,
0
},
{
"GREATEST"
,
SYM
(
GREATEST_SYM
)},
{
"GROUP_CONCAT"
,
SYM
(
GROUP_CONCAT_SYM
)
,
0
,
0
},
{
"GROUP_CONCAT"
,
SYM
(
GROUP_CONCAT_SYM
)},
{
"GROUP_UNIQUE_USERS"
,
SYM
(
GROUP_UNIQUE_USERS
)
,
0
,
0
},
{
"GROUP_UNIQUE_USERS"
,
SYM
(
GROUP_UNIQUE_USERS
)},
{
"HEX"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_hex
)},
{
"HEX"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_hex
)},
{
"IFNULL"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_ifnull
)},
{
"IFNULL"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_ifnull
)},
{
"INET_ATON"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_inet_aton
)},
{
"INET_ATON"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_inet_aton
)},
{
"INET_NTOA"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_inet_ntoa
)},
{
"INET_NTOA"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_inet_ntoa
)},
{
"INSTR"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_instr
)},
{
"INSTR"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_instr
)},
{
"INTERIORRINGN"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_interiorringn
)},
{
"INTERIORRINGN"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_interiorringn
)},
{
"INTERSECTS"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_intersects
)},
{
"INTERSECTS"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_intersects
)},
{
"ISCLOSED"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_isclosed
)},
{
"ISCLOSED"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_isclosed
)},
{
"ISEMPTY"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_isempty
)},
{
"ISEMPTY"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_isempty
)},
{
"ISNULL"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_isnull
)},
{
"ISNULL"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_isnull
)},
{
"IS_FREE_LOCK"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_is_free_lock
)},
{
"IS_FREE_LOCK"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_is_free_lock
)},
{
"IS_USED_LOCK"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_is_used_lock
)},
{
"IS_USED_LOCK"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_is_used_lock
)},
{
"LAST_INSERT_ID"
,
SYM
(
LAST_INSERT_ID
)
,
0
,
0
},
{
"LAST_INSERT_ID"
,
SYM
(
LAST_INSERT_ID
)},
{
"ISSIMPLE"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_issimple
)},
{
"ISSIMPLE"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_issimple
)},
{
"LAST_DAY"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_last_day
)},
{
"LAST_DAY"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_last_day
)},
{
"LCASE"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_lcase
)},
{
"LCASE"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_lcase
)},
{
"LEAST"
,
SYM
(
LEAST_SYM
)
,
0
,
0
},
{
"LEAST"
,
SYM
(
LEAST_SYM
)},
{
"LENGTH"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_length
)},
{
"LENGTH"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_length
)},
{
"LN"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ln
)},
{
"LN"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ln
)},
{
"LINEFROMTEXT"
,
SYM
(
LINEFROMTEXT
)
,
0
,
0
},
{
"LINEFROMTEXT"
,
SYM
(
LINEFROMTEXT
)},
{
"LINEFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"LINEFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"LINESTRINGFROMTEXT"
,
SYM
(
LINEFROMTEXT
)
,
0
,
0
},
{
"LINESTRINGFROMTEXT"
,
SYM
(
LINEFROMTEXT
)},
{
"LINESTRINGFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"LINESTRINGFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"LOAD_FILE"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_load_file
)},
{
"LOAD_FILE"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_load_file
)},
{
"LOCATE"
,
SYM
(
LOCATE
)
,
0
,
0
},
{
"LOCATE"
,
SYM
(
LOCATE
)},
{
"LOG"
,
SYM
(
LOG_SYM
)
,
0
,
0
},
{
"LOG"
,
SYM
(
LOG_SYM
)},
{
"LOG2"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_log2
)},
{
"LOG2"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_log2
)},
{
"LOG10"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_log10
)},
{
"LOG10"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_log10
)},
{
"LOWER"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_lcase
)},
{
"LOWER"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_lcase
)},
{
"LPAD"
,
SYM
(
FUNC_ARG3
),
0
,
CREATE_FUNC
(
create_func_lpad
)},
{
"LPAD"
,
F_
SYM
(
FUNC_ARG3
),
0
,
CREATE_FUNC
(
create_func_lpad
)},
{
"LTRIM"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ltrim
)},
{
"LTRIM"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ltrim
)},
{
"MAKE_SET"
,
SYM
(
MAKE_SET_SYM
)
,
0
,
0
},
{
"MAKE_SET"
,
SYM
(
MAKE_SET_SYM
)},
{
"MAKEDATE"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_makedate
)},
{
"MAKEDATE"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_makedate
)},
{
"MAKETIME"
,
SYM
(
FUNC_ARG3
),
0
,
CREATE_FUNC
(
create_func_maketime
)},
{
"MAKETIME"
,
F_
SYM
(
FUNC_ARG3
),
0
,
CREATE_FUNC
(
create_func_maketime
)},
{
"MASTER_POS_WAIT"
,
SYM
(
MASTER_POS_WAIT
)
,
0
,
0
},
{
"MASTER_POS_WAIT"
,
SYM
(
MASTER_POS_WAIT
)},
{
"MAX"
,
SYM
(
MAX_SYM
)
,
0
,
0
},
{
"MAX"
,
SYM
(
MAX_SYM
)},
{
"MBRCONTAINS"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_contains
)},
{
"MBRCONTAINS"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_contains
)},
{
"MBRDISJOINT"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_disjoint
)},
{
"MBRDISJOINT"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_disjoint
)},
{
"MBREQUAL"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_equals
)},
{
"MBREQUAL"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_equals
)},
{
"MBRINTERSECTS"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_intersects
)},
{
"MBRINTERSECTS"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_intersects
)},
{
"MBROVERLAPS"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_overlaps
)},
{
"MBROVERLAPS"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_overlaps
)},
{
"MBRTOUCHES"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_touches
)},
{
"MBRTOUCHES"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_touches
)},
{
"MBRWITHIN"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_within
)},
{
"MBRWITHIN"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_within
)},
{
"MD5"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_md5
)},
{
"MD5"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_md5
)},
{
"MID"
,
SYM
(
SUBSTRING
)
,
0
,
0
},
/* unireg function */
{
"MID"
,
SYM
(
SUBSTRING
)},
/* unireg function */
{
"MIN"
,
SYM
(
MIN_SYM
)
,
0
,
0
},
{
"MIN"
,
SYM
(
MIN_SYM
)},
{
"MLINEFROMTEXT"
,
SYM
(
MLINEFROMTEXT
)
,
0
,
0
},
{
"MLINEFROMTEXT"
,
SYM
(
MLINEFROMTEXT
)},
{
"MLINEFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"MLINEFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"MPOINTFROMTEXT"
,
SYM
(
MPOINTFROMTEXT
)
,
0
,
0
},
{
"MPOINTFROMTEXT"
,
SYM
(
MPOINTFROMTEXT
)},
{
"MPOINTFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"MPOINTFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"MPOLYFROMTEXT"
,
SYM
(
MPOLYFROMTEXT
)
,
0
,
0
},
{
"MPOLYFROMTEXT"
,
SYM
(
MPOLYFROMTEXT
)},
{
"MPOLYFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"MPOLYFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"MONTHNAME"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_monthname
)},
{
"MONTHNAME"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_monthname
)},
{
"MULTILINESTRINGFROMTEXT"
,
SYM
(
MLINEFROMTEXT
)
,
0
,
0
},
{
"MULTILINESTRINGFROMTEXT"
,
SYM
(
MLINEFROMTEXT
)},
{
"MULTILINESTRINGFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"MULTILINESTRINGFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"MULTIPOINTFROMTEXT"
,
SYM
(
MPOINTFROMTEXT
)
,
0
,
0
},
{
"MULTIPOINTFROMTEXT"
,
SYM
(
MPOINTFROMTEXT
)},
{
"MULTIPOINTFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"MULTIPOINTFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"MULTIPOLYGONFROMTEXT"
,
SYM
(
MPOLYFROMTEXT
)
,
0
,
0
},
{
"MULTIPOLYGONFROMTEXT"
,
SYM
(
MPOLYFROMTEXT
)},
{
"MULTIPOLYGONFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"MULTIPOLYGONFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"NOW"
,
SYM
(
NOW_SYM
)
,
0
,
0
},
{
"NOW"
,
SYM
(
NOW_SYM
)},
{
"NULLIF"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_nullif
)},
{
"NULLIF"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_nullif
)},
{
"NUMGEOMETRIES"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_numgeometries
)},
{
"NUMGEOMETRIES"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_numgeometries
)},
{
"NUMINTERIORRINGS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_numinteriorring
)},
{
"NUMINTERIORRINGS"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_numinteriorring
)},
{
"NUMPOINTS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_numpoints
)},
{
"NUMPOINTS"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_numpoints
)},
{
"OCTET_LENGTH"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_length
)},
{
"OCTET_LENGTH"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_length
)},
{
"OCT"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_oct
)},
{
"OCT"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_oct
)},
{
"ORD"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ord
)},
{
"ORD"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ord
)},
{
"OVERLAPS"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_overlaps
)},
{
"OVERLAPS"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_overlaps
)},
{
"PERIOD_ADD"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_period_add
)},
{
"PERIOD_ADD"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_period_add
)},
{
"PERIOD_DIFF"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_period_diff
)},
{
"PERIOD_DIFF"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_period_diff
)},
{
"PI"
,
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_pi
)},
{
"PI"
,
F_
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_pi
)},
{
"POINTFROMTEXT"
,
SYM
(
POINTFROMTEXT
)
,
0
,
0
},
{
"POINTFROMTEXT"
,
SYM
(
POINTFROMTEXT
)},
{
"POINTFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"POINTFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"POINTN"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_pointn
)},
{
"POINTN"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_pointn
)},
{
"POLYFROMTEXT"
,
SYM
(
POLYFROMTEXT
)
,
0
,
0
},
{
"POLYFROMTEXT"
,
SYM
(
POLYFROMTEXT
)},
{
"POLYFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"POLYFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"POLYGONFROMTEXT"
,
SYM
(
POLYFROMTEXT
)
,
0
,
0
},
{
"POLYGONFROMTEXT"
,
SYM
(
POLYFROMTEXT
)},
{
"POLYGONFROMWKB"
,
SYM
(
GEOMFROMWKB
)
,
0
,
0
},
{
"POLYGONFROMWKB"
,
SYM
(
GEOMFROMWKB
)},
{
"POSITION"
,
SYM
(
POSITION_SYM
)
,
0
,
0
},
{
"POSITION"
,
SYM
(
POSITION_SYM
)},
{
"POW"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_pow
)},
{
"POW"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_pow
)},
{
"POWER"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_pow
)},
{
"POWER"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_pow
)},
{
"QUARTER"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_quarter
)},
{
"QUARTER"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_quarter
)},
{
"QUOTE"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_quote
)},
{
"QUOTE"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_quote
)},
{
"RADIANS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_radians
)},
{
"RADIANS"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_radians
)},
{
"RAND"
,
SYM
(
RAND
)
,
0
,
0
},
{
"RAND"
,
SYM
(
RAND
)},
{
"RELEASE_LOCK"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_release_lock
)},
{
"RELEASE_LOCK"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_release_lock
)},
{
"REPEAT"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_repeat
)},
{
"REPEAT"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_repeat
)},
{
"REVERSE"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_reverse
)},
{
"REVERSE"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_reverse
)},
{
"ROUND"
,
SYM
(
ROUND
)
,
0
,
0
},
{
"ROUND"
,
SYM
(
ROUND
)},
{
"RPAD"
,
SYM
(
FUNC_ARG3
),
0
,
CREATE_FUNC
(
create_func_rpad
)},
{
"RPAD"
,
F_
SYM
(
FUNC_ARG3
),
0
,
CREATE_FUNC
(
create_func_rpad
)},
{
"RTRIM"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_rtrim
)},
{
"RTRIM"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_rtrim
)},
{
"SEC_TO_TIME"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sec_to_time
)},
{
"SEC_TO_TIME"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sec_to_time
)},
{
"SESSION_USER"
,
SYM
(
USER
)
,
0
,
0
},
{
"SESSION_USER"
,
SYM
(
USER
)},
{
"SUBDATE"
,
SYM
(
SUBDATE_SYM
)
,
0
,
0
},
{
"SUBDATE"
,
SYM
(
SUBDATE_SYM
)},
{
"SIGN"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sign
)},
{
"SIGN"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sign
)},
{
"SIN"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sin
)},
{
"SIN"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sin
)},
{
"SHA"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sha
)},
{
"SHA"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sha
)},
{
"SHA1"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sha
)},
{
"SHA1"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sha
)},
{
"SOUNDEX"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_soundex
)},
{
"SOUNDEX"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_soundex
)},
{
"SPACE"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_space
)},
{
"SPACE"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_space
)},
{
"SQRT"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sqrt
)},
{
"SQRT"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_sqrt
)},
{
"SRID"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_srid
)},
{
"SRID"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_srid
)},
{
"STARTPOINT"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_startpoint
)},
{
"STARTPOINT"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_startpoint
)},
{
"STD"
,
SYM
(
STD_SYM
)
,
0
,
0
},
{
"STD"
,
SYM
(
STD_SYM
)},
{
"STDDEV"
,
SYM
(
STD_SYM
)
,
0
,
0
},
{
"STDDEV"
,
SYM
(
STD_SYM
)},
{
"STR_TO_DATE"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_str_to_date
)},
{
"STR_TO_DATE"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_str_to_date
)},
{
"STRCMP"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_strcmp
)},
{
"STRCMP"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_strcmp
)},
{
"SUBSTR"
,
SYM
(
SUBSTRING
)
,
0
,
0
},
{
"SUBSTR"
,
SYM
(
SUBSTRING
)},
{
"SUBSTRING"
,
SYM
(
SUBSTRING
)
,
0
,
0
},
{
"SUBSTRING"
,
SYM
(
SUBSTRING
)},
{
"SUBSTRING_INDEX"
,
SYM
(
SUBSTRING_INDEX
)
,
0
,
0
},
{
"SUBSTRING_INDEX"
,
SYM
(
SUBSTRING_INDEX
)},
{
"SUBTIME"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_subtime
)},
{
"SUBTIME"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_subtime
)},
{
"SUM"
,
SYM
(
SUM_SYM
)
,
0
,
0
},
{
"SUM"
,
SYM
(
SUM_SYM
)},
{
"SYSDATE"
,
SYM
(
NOW_SYM
)
,
0
,
0
},
{
"SYSDATE"
,
SYM
(
NOW_SYM
)},
{
"SYSTEM_USER"
,
SYM
(
USER
)
,
0
,
0
},
{
"SYSTEM_USER"
,
SYM
(
USER
)},
{
"TAN"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_tan
)},
{
"TAN"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_tan
)},
{
"TIME_FORMAT"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_time_format
)},
{
"TIME_FORMAT"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_time_format
)},
{
"TIME_TO_SEC"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_time_to_sec
)},
{
"TIME_TO_SEC"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_time_to_sec
)},
{
"TIMEDIFF"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_timediff
)},
{
"TIMEDIFF"
,
F_
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_timediff
)},
{
"TO_DAYS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_to_days
)},
{
"TO_DAYS"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_to_days
)},
{
"TOUCHES"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_touches
)},
{
"TOUCHES"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_touches
)},
{
"TRIM"
,
SYM
(
TRIM
)
,
0
,
0
},
{
"TRIM"
,
SYM
(
TRIM
)},
{
"UCASE"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ucase
)},
{
"UCASE"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ucase
)},
{
"UNCOMPRESS"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_uncompress
)},
{
"UNCOMPRESS"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_uncompress
)},
{
"UNCOMPRESSED_LENGTH"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_uncompressed_length
)},
{
"UNCOMPRESSED_LENGTH"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_uncompressed_length
)},
{
"UNIQUE_USERS"
,
SYM
(
UNIQUE_USERS
)
,
0
,
0
},
{
"UNIQUE_USERS"
,
SYM
(
UNIQUE_USERS
)},
{
"UNIX_TIMESTAMP"
,
SYM
(
UNIX_TIMESTAMP
)
,
0
,
0
},
{
"UNIX_TIMESTAMP"
,
SYM
(
UNIX_TIMESTAMP
)},
{
"UPPER"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ucase
)},
{
"UPPER"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_ucase
)},
{
"VARIANCE"
,
SYM
(
VARIANCE_SYM
)
,
0
,
0
},
{
"VARIANCE"
,
SYM
(
VARIANCE_SYM
)},
{
"VERSION"
,
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_version
)},
{
"VERSION"
,
F_
SYM
(
FUNC_ARG0
),
0
,
CREATE_FUNC
(
create_func_version
)},
{
"WEEK"
,
SYM
(
WEEK_SYM
)
,
0
,
0
},
{
"WEEK"
,
SYM
(
WEEK_SYM
)},
{
"WEEKDAY"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_weekday
)},
{
"WEEKDAY"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_weekday
)},
{
"WEEKOFYEAR"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_weekofyear
)},
{
"WEEKOFYEAR"
,
F_
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_weekofyear
)},
{
"WITHIN"
,
SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC
(
create_func_within
)},
{
"WITHIN"
,
F_SYM
(
FUNC_ARG2
),
0
,
CREATE_FUNC_GEOM
(
create_func_within
)},
{
"X"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_x
)},
{
"X"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_x
)},
{
"Y"
,
SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC
(
create_func_y
)},
{
"Y"
,
F_SYM
(
FUNC_ARG1
),
0
,
CREATE_FUNC_GEOM
(
create_func_y
)},
{
"YEARWEEK"
,
SYM
(
YEARWEEK
)
,
0
,
0
}
{
"YEARWEEK"
,
SYM
(
YEARWEEK
)}
};
};
sql/lex_symbol.h
View file @
0c5b6c19
...
@@ -20,11 +20,14 @@
...
@@ -20,11 +20,14 @@
#ifndef _lex_symbol_h
#ifndef _lex_symbol_h
#define _lex_symbol_h
#define _lex_symbol_h
struct
st_sym_group
;
typedef
struct
st_symbol
{
typedef
struct
st_symbol
{
const
char
*
name
;
const
char
*
name
;
uint
tok
;
uint
tok
;
uint
length
;
uint
length
;
void
*
create_func
;
void
*
create_func
;
struct
st_sym_group
*
group
;
}
SYMBOL
;
}
SYMBOL
;
typedef
struct
st_lex_symbol
typedef
struct
st_lex_symbol
...
...
sql/mysql_priv.h
View file @
0c5b6c19
...
@@ -1105,3 +1105,12 @@ inline void setup_table_map(TABLE *table, TABLE_LIST *table_list, uint tablenr)
...
@@ -1105,3 +1105,12 @@ inline void setup_table_map(TABLE *table, TABLE_LIST *table_list, uint tablenr)
table
->
map
=
(
table_map
)
1
<<
tablenr
;
table
->
map
=
(
table_map
)
1
<<
tablenr
;
table
->
force_index
=
table_list
->
force_index
;
table
->
force_index
=
table_list
->
force_index
;
}
}
typedef
struct
st_sym_group
{
const
char
*
name
;
const
char
*
needed_define
;
}
SYM_GROUP
;
extern
SYM_GROUP
sym_group_common
;
extern
SYM_GROUP
sym_group_geom
;
extern
SYM_GROUP
sym_group_rtree
;
sql/share/czech/errmsg.txt
View file @
0c5b6c19
...
@@ -300,3 +300,4 @@ character-set=latin2
...
@@ -300,3 +300,4 @@ character-set=latin2
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/danish/errmsg.txt
View file @
0c5b6c19
...
@@ -294,3 +294,4 @@ character-set=latin1
...
@@ -294,3 +294,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/dutch/errmsg.txt
View file @
0c5b6c19
...
@@ -302,3 +302,4 @@ character-set=latin1
...
@@ -302,3 +302,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/english/errmsg.txt
View file @
0c5b6c19
...
@@ -291,3 +291,4 @@ character-set=latin1
...
@@ -291,3 +291,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/estonian/errmsg.txt
View file @
0c5b6c19
...
@@ -296,3 +296,4 @@ character-set=latin7
...
@@ -296,3 +296,4 @@ character-set=latin7
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/french/errmsg.txt
View file @
0c5b6c19
...
@@ -291,3 +291,4 @@ character-set=latin1
...
@@ -291,3 +291,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/german/errmsg.txt
View file @
0c5b6c19
...
@@ -303,3 +303,4 @@ character-set=latin1
...
@@ -303,3 +303,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/greek/errmsg.txt
View file @
0c5b6c19
...
@@ -291,3 +291,4 @@ character-set=greek
...
@@ -291,3 +291,4 @@ character-set=greek
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/hungarian/errmsg.txt
View file @
0c5b6c19
...
@@ -293,3 +293,4 @@ character-set=latin2
...
@@ -293,3 +293,4 @@ character-set=latin2
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/italian/errmsg.txt
View file @
0c5b6c19
...
@@ -291,3 +291,4 @@ character-set=latin1
...
@@ -291,3 +291,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/japanese/errmsg.txt
View file @
0c5b6c19
...
@@ -293,3 +293,4 @@ character-set=ujis
...
@@ -293,3 +293,4 @@ character-set=ujis
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/korean/errmsg.txt
View file @
0c5b6c19
...
@@ -291,3 +291,4 @@ character-set=euckr
...
@@ -291,3 +291,4 @@ character-set=euckr
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/norwegian-ny/errmsg.txt
View file @
0c5b6c19
...
@@ -293,3 +293,4 @@ character-set=latin1
...
@@ -293,3 +293,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/norwegian/errmsg.txt
View file @
0c5b6c19
...
@@ -293,3 +293,4 @@ character-set=latin1
...
@@ -293,3 +293,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/polish/errmsg.txt
View file @
0c5b6c19
...
@@ -295,3 +295,4 @@ character-set=latin2
...
@@ -295,3 +295,4 @@ character-set=latin2
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/portuguese/errmsg.txt
View file @
0c5b6c19
...
@@ -292,3 +292,4 @@ character-set=latin1
...
@@ -292,3 +292,4 @@ character-set=latin1
"Motor de tabela desconhecido '%s'",
"Motor de tabela desconhecido '%s'",
"'%s' é desatualizado. Use '%s' em seu lugar.",
"'%s' é desatualizado. Use '%s' em seu lugar.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/romanian/errmsg.txt
View file @
0c5b6c19
...
@@ -295,3 +295,4 @@ character-set=latin2
...
@@ -295,3 +295,4 @@ character-set=latin2
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/russian/errmsg.txt
View file @
0c5b6c19
...
@@ -293,3 +293,4 @@ character-set=koi8r
...
@@ -293,3 +293,4 @@ character-set=koi8r
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
" %-.100s %s .",
" %-.100s %s .",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/serbian/errmsg.txt
View file @
0c5b6c19
...
@@ -286,3 +286,4 @@ character-set=cp1250
...
@@ -286,3 +286,4 @@ character-set=cp1250
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/slovak/errmsg.txt
View file @
0c5b6c19
...
@@ -299,3 +299,4 @@ character-set=latin2
...
@@ -299,3 +299,4 @@ character-set=latin2
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/spanish/errmsg.txt
View file @
0c5b6c19
...
@@ -293,3 +293,4 @@ character-set=latin1
...
@@ -293,3 +293,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/swedish/errmsg.txt
View file @
0c5b6c19
...
@@ -291,3 +291,4 @@ character-set=latin1
...
@@ -291,3 +291,4 @@ character-set=latin1
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
"The target table %-.100s of the %s is not updatable.",
"The target table %-.100s of the %s is not updatable.",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/share/ukrainian/errmsg.txt
View file @
0c5b6c19
...
@@ -296,3 +296,4 @@ character-set=koi8u
...
@@ -296,3 +296,4 @@ character-set=koi8u
"Unknown table engine '%s'",
"Unknown table engine '%s'",
"'%s' is deprecated. Use '%s' instead.",
"'%s' is deprecated. Use '%s' instead.",
" %-.100s %s .",
" %-.100s %s .",
"The '%s' feature was disabled. You need MySQL built with '%s' define to have it working"
sql/sql_table.cc
View file @
0c5b6c19
...
@@ -510,6 +510,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -510,6 +510,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
blob_columns
++
;
blob_columns
++
;
break
;
break
;
case
FIELD_TYPE_GEOMETRY
:
case
FIELD_TYPE_GEOMETRY
:
#ifdef HAVE_SPATIAL
if
(
!
(
file
->
table_flags
()
&
HA_HAS_GEOMETRY
))
if
(
!
(
file
->
table_flags
()
&
HA_HAS_GEOMETRY
))
{
{
my_printf_error
(
ER_CHECK_NOT_IMPLEMENTED
,
ER
(
ER_CHECK_NOT_IMPLEMENTED
),
my_printf_error
(
ER_CHECK_NOT_IMPLEMENTED
,
ER
(
ER_CHECK_NOT_IMPLEMENTED
),
...
@@ -525,6 +526,11 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -525,6 +526,11 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
sql_field
->
unireg_check
=
Field
::
BLOB_FIELD
;
sql_field
->
unireg_check
=
Field
::
BLOB_FIELD
;
blob_columns
++
;
blob_columns
++
;
break
;
break
;
#else
my_printf_error
(
ER_FEATURE_DISABLED
,
ER
(
ER_FEATURE_DISABLED
),
MYF
(
0
),
sym_group_geom
.
name
,
sym_group_geom
.
needed_define
);
DBUG_RETURN
(
-
1
);
#endif
/*HAVE_SPATIAL*/
case
FIELD_TYPE_VAR_STRING
:
case
FIELD_TYPE_VAR_STRING
:
case
FIELD_TYPE_STRING
:
case
FIELD_TYPE_STRING
:
sql_field
->
pack_flag
=
0
;
sql_field
->
pack_flag
=
0
;
...
@@ -658,8 +664,14 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -658,8 +664,14 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
key_info
->
flags
=
HA_FULLTEXT
;
key_info
->
flags
=
HA_FULLTEXT
;
break
;
break
;
case
Key
:
:
SPATIAL
:
case
Key
:
:
SPATIAL
:
#ifdef HAVE_SPATIAL
key_info
->
flags
=
HA_SPATIAL
;
key_info
->
flags
=
HA_SPATIAL
;
break
;
break
;
#else
my_printf_error
(
ER_FEATURE_DISABLED
,
ER
(
ER_FEATURE_DISABLED
),
MYF
(
0
),
sym_group_geom
.
name
,
sym_group_geom
.
needed_define
);
DBUG_RETURN
(
-
1
);
#endif
case
Key
:
:
FOREIGN_KEY
:
case
Key
:
:
FOREIGN_KEY
:
key_number
--
;
// Skip this key
key_number
--
;
// Skip this key
continue
;
continue
;
...
@@ -698,8 +710,10 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -698,8 +710,10 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
}
}
}
}
else
if
(
key_info
->
algorithm
==
HA_KEY_ALG_RTREE
)
else
if
(
key_info
->
algorithm
==
HA_KEY_ALG_RTREE
)
{
{
#ifdef HAVE_RTREE_KEYS
if
((
key_info
->
key_parts
&
1
)
==
1
)
if
((
key_info
->
key_parts
&
1
)
==
1
)
{
{
my_printf_error
(
ER_WRONG_ARGUMENTS
,
my_printf_error
(
ER_WRONG_ARGUMENTS
,
...
@@ -710,6 +724,11 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -710,6 +724,11 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
my_printf_error
(
ER_NOT_SUPPORTED_YET
,
ER
(
ER_NOT_SUPPORTED_YET
),
my_printf_error
(
ER_NOT_SUPPORTED_YET
,
ER
(
ER_NOT_SUPPORTED_YET
),
MYF
(
0
),
"RTREE INDEX"
);
MYF
(
0
),
"RTREE INDEX"
);
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
#else
my_printf_error
(
ER_FEATURE_DISABLED
,
ER
(
ER_FEATURE_DISABLED
),
MYF
(
0
),
sym_group_rtree
.
name
,
sym_group_rtree
.
needed_define
);
DBUG_RETURN
(
-
1
);
#endif
}
}
List_iterator
<
key_part_spec
>
cols
(
key
->
columns
);
List_iterator
<
key_part_spec
>
cols
(
key
->
columns
);
...
@@ -779,6 +798,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -779,6 +798,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
}
}
}
}
#ifdef HAVE_SPATIAL
if
(
key
->
type
==
Key
::
SPATIAL
)
if
(
key
->
type
==
Key
::
SPATIAL
)
{
{
if
(
!
column
->
length
)
if
(
!
column
->
length
)
...
@@ -790,6 +810,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -790,6 +810,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
column
->
length
=
4
*
sizeof
(
double
);
column
->
length
=
4
*
sizeof
(
double
);
}
}
}
}
#endif
if
(
!
(
sql_field
->
flags
&
NOT_NULL_FLAG
))
if
(
!
(
sql_field
->
flags
&
NOT_NULL_FLAG
))
{
{
if
(
key
->
type
==
Key
::
PRIMARY
)
if
(
key
->
type
==
Key
::
PRIMARY
)
...
@@ -834,6 +855,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
...
@@ -834,6 +855,7 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
DBUG_RETURN
(
-
1
);
DBUG_RETURN
(
-
1
);
}
}
}
}
/* TODO HF What's this for??? */
else
if
(
f_is_geom
(
sql_field
->
pack_flag
))
else
if
(
f_is_geom
(
sql_field
->
pack_flag
))
{
{
}
}
...
...
sql/sql_yacc.yy
View file @
0c5b6c19
...
@@ -611,7 +611,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
...
@@ -611,7 +611,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
udf_type if_exists opt_local opt_table_options table_options
udf_type if_exists opt_local opt_table_options table_options
table_option opt_if_not_exists opt_no_write_to_binlog opt_var_type
table_option opt_if_not_exists opt_no_write_to_binlog opt_var_type
opt_var_ident_type delete_option opt_temporary all_or_any opt_distinct
opt_var_ident_type delete_option opt_temporary all_or_any opt_distinct
opt_ignore_leaves fulltext_options
opt_ignore_leaves fulltext_options
spatial_type
%type <ulong_num>
%type <ulong_num>
ULONG_NUM raid_types merge_insert_types
ULONG_NUM raid_types merge_insert_types
...
@@ -628,7 +628,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
...
@@ -628,7 +628,7 @@ bool my_yyoverflow(short **a, YYSTYPE **b,int *yystacksize);
table_wild no_in_expr expr_expr simple_expr no_and_expr
table_wild no_in_expr expr_expr simple_expr no_and_expr
using_list expr_or_default set_expr_or_default interval_expr
using_list expr_or_default set_expr_or_default interval_expr
param_marker singlerow_subselect singlerow_subselect_init
param_marker singlerow_subselect singlerow_subselect_init
exists_subselect exists_subselect_init
exists_subselect exists_subselect_init
geometry_function
signed_literal NUM_literal
signed_literal NUM_literal
%type <item_list>
%type <item_list>
...
@@ -1297,30 +1297,19 @@ type:
...
@@ -1297,30 +1297,19 @@ type:
$$=FIELD_TYPE_TINY_BLOB; }
$$=FIELD_TYPE_TINY_BLOB; }
| BLOB_SYM opt_len { Lex->charset=&my_charset_bin;
| BLOB_SYM opt_len { Lex->charset=&my_charset_bin;
$$=FIELD_TYPE_BLOB; }
$$=FIELD_TYPE_BLOB; }
| GEOMETRY_SYM { Lex->charset=&my_charset_bin;
| spatial_type {
Lex->uint_geom_type= (uint) Field::GEOM_GEOMETRY;
#ifdef HAVE_SPATIAL
$$=FIELD_TYPE_GEOMETRY; }
Lex->charset=&my_charset_bin;
| GEOMETRYCOLLECTION { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= (uint)$1;
Lex->uint_geom_type= (uint) Field::GEOM_GEOMETRYCOLLECTION;
$$=FIELD_TYPE_GEOMETRY;
$$=FIELD_TYPE_GEOMETRY; }
#else
| POINT_SYM { Lex->charset=&my_charset_bin;
net_printf(Lex->thd, ER_FEATURE_DISABLED,
Lex->uint_geom_type= (uint) Field::GEOM_POINT;
ER(ER_FEATURE_DISABLED),
$$=FIELD_TYPE_GEOMETRY; }
sym_group_geom.name,
| MULTIPOINT { Lex->charset=&my_charset_bin;
sym_group_geom.needed_define);
Lex->uint_geom_type= (uint) Field::GEOM_MULTIPOINT;
YYABORT;
$$=FIELD_TYPE_GEOMETRY; }
#endif
| LINESTRING { Lex->charset=&my_charset_bin;
}
Lex->uint_geom_type= (uint) Field::GEOM_LINESTRING;
$$=FIELD_TYPE_GEOMETRY; }
| MULTILINESTRING { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= (uint) Field::GEOM_MULTILINESTRING;
$$=FIELD_TYPE_GEOMETRY; }
| POLYGON { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= (uint) Field::GEOM_POLYGON;
$$=FIELD_TYPE_GEOMETRY; }
| MULTIPOLYGON { Lex->charset=&my_charset_bin;
Lex->uint_geom_type= (uint) Field::GEOM_MULTIPOLYGON;
$$=FIELD_TYPE_GEOMETRY; }
| MEDIUMBLOB { Lex->charset=&my_charset_bin;
| MEDIUMBLOB { Lex->charset=&my_charset_bin;
$$=FIELD_TYPE_MEDIUM_BLOB; }
$$=FIELD_TYPE_MEDIUM_BLOB; }
| LONGBLOB { Lex->charset=&my_charset_bin;
| LONGBLOB { Lex->charset=&my_charset_bin;
...
@@ -1359,6 +1348,17 @@ type:
...
@@ -1359,6 +1348,17 @@ type:
}
}
;
;
spatial_type:
GEOMETRY_SYM { $$= Field::GEOM_GEOMETRY; }
| GEOMETRYCOLLECTION { $$= Field::GEOM_GEOMETRYCOLLECTION; }
| POINT_SYM { $$= Field::GEOM_POINT; }
| MULTIPOINT { $$= Field::GEOM_MULTIPOINT; }
| LINESTRING { $$= Field::GEOM_LINESTRING; }
| MULTILINESTRING { $$= Field::GEOM_MULTILINESTRING; }
| POLYGON { $$= Field::GEOM_POLYGON; }
| MULTIPOLYGON { $$= Field::GEOM_MULTIPOLYGON; }
;
char:
char:
CHAR_SYM {}
CHAR_SYM {}
;
;
...
@@ -1589,20 +1589,32 @@ delete_option:
...
@@ -1589,20 +1589,32 @@ delete_option:
key_type:
key_type:
key_or_index { $$= Key::MULTIPLE; }
key_or_index { $$= Key::MULTIPLE; }
| FULLTEXT_SYM { $$= Key::FULLTEXT; }
| FULLTEXT_SYM opt_key_or_index { $$= Key::FULLTEXT; }
| FULLTEXT_SYM key_or_index { $$= Key::FULLTEXT; }
| SPATIAL_SYM opt_key_or_index
| SPATIAL_SYM { $$= Key::SPATIAL; }
{
| SPATIAL_SYM key_or_index { $$= Key::SPATIAL; };
#ifdef HAVE_SPATIAL
$$= Key::SPATIAL;
#else
net_printf(Lex->thd, ER_FEATURE_DISABLED,
ER(ER_FEATURE_DISABLED),
sym_group_geom.name, sym_group_geom.needed_define);
YYABORT;
#endif
};
constraint_key_type:
constraint_key_type:
PRIMARY_SYM KEY_SYM { $$= Key::PRIMARY; }
PRIMARY_SYM KEY_SYM { $$= Key::PRIMARY; }
| UNIQUE_SYM { $$= Key::UNIQUE; }
| UNIQUE_SYM opt_key_or_index { $$= Key::UNIQUE; };
| UNIQUE_SYM key_or_index { $$= Key::UNIQUE; };
key_or_index:
key_or_index:
KEY_SYM {}
KEY_SYM {}
| INDEX {};
| INDEX {};
opt_key_or_index:
/* empty */ {}
| key_or_index
;
opt_keys_or_index:
opt_keys_or_index:
/* empty */ {}
/* empty */ {}
| keys_or_index
| keys_or_index
...
@@ -1617,7 +1629,17 @@ opt_unique_or_fulltext:
...
@@ -1617,7 +1629,17 @@ opt_unique_or_fulltext:
/* empty */ { $$= Key::MULTIPLE; }
/* empty */ { $$= Key::MULTIPLE; }
| UNIQUE_SYM { $$= Key::UNIQUE; }
| UNIQUE_SYM { $$= Key::UNIQUE; }
| FULLTEXT_SYM { $$= Key::FULLTEXT;}
| FULLTEXT_SYM { $$= Key::FULLTEXT;}
| SPATIAL_SYM { $$= Key::SPATIAL; }
| SPATIAL_SYM
{
#ifdef HAVE_SPATIAL
$$= Key::SPATIAL;
#else
net_printf(Lex->thd, ER_FEATURE_DISABLED,
ER(ER_FEATURE_DISABLED),
sym_group_geom.name, sym_group_geom.needed_define);
YYABORT;
#endif
}
;
;
key_alg:
key_alg:
...
@@ -1627,7 +1649,10 @@ key_alg:
...
@@ -1627,7 +1649,10 @@ key_alg:
opt_btree_or_rtree:
opt_btree_or_rtree:
BTREE_SYM { $$= HA_KEY_ALG_BTREE; }
BTREE_SYM { $$= HA_KEY_ALG_BTREE; }
| RTREE_SYM { $$= HA_KEY_ALG_RTREE; }
| RTREE_SYM
{
$$= HA_KEY_ALG_RTREE;
}
| HASH_SYM { $$= HA_KEY_ALG_HASH; };
| HASH_SYM { $$= HA_KEY_ALG_HASH; };
key_list:
key_list:
...
@@ -2556,13 +2581,53 @@ simple_expr:
...
@@ -2556,13 +2581,53 @@ simple_expr:
| VALUES '(' simple_ident ')'
| VALUES '(' simple_ident ')'
{ $$= new Item_insert_value($3); }
{ $$= new Item_insert_value($3); }
| FUNC_ARG0 '(' ')'
| FUNC_ARG0 '(' ')'
{ $$= ((Item*(*)(void))($1.symbol->create_func))();}
{
if (!$1.symbol->create_func)
{
net_printf(Lex->thd, ER_FEATURE_DISABLED,
ER(ER_FEATURE_DISABLED),
$1.symbol->group->name,
$1.symbol->group->needed_define);
YYABORT;
}
$$= ((Item*(*)(void))($1.symbol->create_func))();
}
| FUNC_ARG1 '(' expr ')'
| FUNC_ARG1 '(' expr ')'
{ $$= ((Item*(*)(Item*))($1.symbol->create_func))($3);}
{
if (!$1.symbol->create_func)
{
net_printf(Lex->thd, ER_FEATURE_DISABLED,
ER(ER_FEATURE_DISABLED),
$1.symbol->group->name,
$1.symbol->group->needed_define);
YYABORT;
}
$$= ((Item*(*)(Item*))($1.symbol->create_func))($3);
}
| FUNC_ARG2 '(' expr ',' expr ')'
| FUNC_ARG2 '(' expr ',' expr ')'
{ $$= ((Item*(*)(Item*,Item*))($1.symbol->create_func))($3,$5);}
{
if (!$1.symbol->create_func)
{
net_printf(Lex->thd, ER_FEATURE_DISABLED,
ER(ER_FEATURE_DISABLED),
$1.symbol->group->name,
$1.symbol->group->needed_define);
YYABORT;
}
$$= ((Item*(*)(Item*,Item*))($1.symbol->create_func))($3,$5);
}
| FUNC_ARG3 '(' expr ',' expr ',' expr ')'
| FUNC_ARG3 '(' expr ',' expr ',' expr ')'
{ $$= ((Item*(*)(Item*,Item*,Item*))($1.symbol->create_func))($3,$5,$7);}
{
if (!$1.symbol->create_func)
{
net_printf(Lex->thd, ER_FEATURE_DISABLED,
ER(ER_FEATURE_DISABLED),
$1.symbol->group->name,
$1.symbol->group->needed_define);
YYABORT;
}
$$= ((Item*(*)(Item*,Item*,Item*))($1.symbol->create_func))($3,$5,$7);
}
| ADDDATE_SYM '(' expr ',' expr ')'
| ADDDATE_SYM '(' expr ',' expr ')'
{ $$= new Item_date_add_interval($3, $5, INTERVAL_DAY, 0);}
{ $$= new Item_date_add_interval($3, $5, INTERVAL_DAY, 0);}
| ADDDATE_SYM '(' expr ',' INTERVAL_SYM expr interval ')'
| ADDDATE_SYM '(' expr ',' INTERVAL_SYM expr interval ')'
...
@@ -2645,18 +2710,17 @@ simple_expr:
...
@@ -2645,18 +2710,17 @@ simple_expr:
}
}
| FIELD_FUNC '(' expr ',' expr_list ')'
| FIELD_FUNC '(' expr ',' expr_list ')'
{ $5->push_front($3); $$= new Item_func_field(*$5); }
{ $5->push_front($3); $$= new Item_func_field(*$5); }
| GEOMFROMTEXT '(' expr ')'
| geometry_function
{ $$= new Item_func_geometry_from_text($3); }
{
| GEOMFROMTEXT '(' expr ',' expr ')'
#ifdef HAVE_SPATIAL
{ $$= new Item_func_geometry_from_text($3, $5); }
$$= $1;
| GEOMFROMWKB '(' expr ')'
#else
{ $$= new Item_func_geometry_from_wkb($3); }
net_printf(Lex->thd, ER_FEATURE_DISABLED,
| GEOMFROMWKB '(' expr ',' expr ')'
ER(ER_FEATURE_DISABLED),
{ $$= new Item_func_geometry_from_wkb($3, $5); }
sym_group_geom.name, sym_group_geom.needed_define);
| GEOMETRYCOLLECTION '(' expr_list ')'
YYABORT;
{ $$= new Item_func_spatial_collection(* $3,
#endif
Geometry::wkbGeometryCollection,
}
Geometry::wkbPoint); }
| GET_FORMAT '(' date_time_type ',' expr ')'
| GET_FORMAT '(' date_time_type ',' expr ')'
{ $$= new Item_func_get_format($3, $5); }
{ $$= new Item_func_get_format($3, $5); }
| HOUR_SYM '(' expr ')'
| HOUR_SYM '(' expr ')'
...
@@ -2690,17 +2754,10 @@ simple_expr:
...
@@ -2690,17 +2754,10 @@ simple_expr:
}
}
| LEFT '(' expr ',' expr ')'
| LEFT '(' expr ',' expr ')'
{ $$= new Item_func_left($3,$5); }
{ $$= new Item_func_left($3,$5); }
| LINESTRING '(' expr_list ')'
{ $$= new Item_func_spatial_collection(* $3,
Geometry::wkbLineString, Geometry::wkbPoint); }
| LOCATE '(' expr ',' expr ')'
| LOCATE '(' expr ',' expr ')'
{ $$= new Item_func_locate($5,$3); }
{ $$= new Item_func_locate($5,$3); }
| LOCATE '(' expr ',' expr ',' expr ')'
| LOCATE '(' expr ',' expr ',' expr ')'
{ $$= new Item_func_locate($5,$3,$7); }
{ $$= new Item_func_locate($5,$3,$7); }
| GEOMCOLLFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3); }
| GEOMCOLLFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3, $5); }
| GREATEST_SYM '(' expr ',' expr_list ')'
| GREATEST_SYM '(' expr ',' expr_list ')'
{ $5->push_front($3); $$= new Item_func_max(*$5); }
{ $5->push_front($3); $$= new Item_func_max(*$5); }
| LEAST_SYM '(' expr ',' expr_list ')'
| LEAST_SYM '(' expr ',' expr_list ')'
...
@@ -2709,10 +2766,6 @@ simple_expr:
...
@@ -2709,10 +2766,6 @@ simple_expr:
{ $$= new Item_func_log($3); }
{ $$= new Item_func_log($3); }
| LOG_SYM '(' expr ',' expr ')'
| LOG_SYM '(' expr ',' expr ')'
{ $$= new Item_func_log($3, $5); }
{ $$= new Item_func_log($3, $5); }
| LINEFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3); }
| LINEFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3, $5); }
| MASTER_POS_WAIT '(' expr ',' expr ')'
| MASTER_POS_WAIT '(' expr ',' expr ')'
{
{
$$= new Item_master_pos_wait($3, $5);
$$= new Item_master_pos_wait($3, $5);
...
@@ -2731,27 +2784,6 @@ simple_expr:
...
@@ -2731,27 +2784,6 @@ simple_expr:
{ $$ = new Item_func_mod( $3, $5); }
{ $$ = new Item_func_mod( $3, $5); }
| MONTH_SYM '(' expr ')'
| MONTH_SYM '(' expr ')'
{ $$= new Item_func_month($3); }
{ $$= new Item_func_month($3); }
| MULTILINESTRING '(' expr_list ')'
{ $$= new Item_func_spatial_collection(* $3,
Geometry::wkbMultiLineString, Geometry::wkbLineString); }
| MLINEFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3); }
| MLINEFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3, $5); }
| MPOINTFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3); }
| MPOINTFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3, $5); }
| MPOLYFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3); }
| MPOLYFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3, $5); }
| MULTIPOINT '(' expr_list ')'
{ $$= new Item_func_spatial_collection(* $3,
Geometry::wkbMultiPoint, Geometry::wkbPoint); }
| MULTIPOLYGON '(' expr_list ')'
{ $$= new Item_func_spatial_collection(* $3,
Geometry::wkbMultiPolygon, Geometry::wkbPolygon ); }
| NOW_SYM optional_braces
| NOW_SYM optional_braces
{ $$= new Item_func_now_local(); Lex->safe_to_cache_query=0;}
{ $$= new Item_func_now_local(); Lex->safe_to_cache_query=0;}
| NOW_SYM '(' expr ')'
| NOW_SYM '(' expr ')'
...
@@ -2764,19 +2796,6 @@ simple_expr:
...
@@ -2764,19 +2796,6 @@ simple_expr:
}
}
| OLD_PASSWORD '(' expr ')'
| OLD_PASSWORD '(' expr ')'
{ $$= new Item_func_old_password($3); }
{ $$= new Item_func_old_password($3); }
| POINT_SYM '(' expr ',' expr ')'
{ $$= new Item_func_point($3,$5); }
| POINTFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3); }
| POINTFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3, $5); }
| POLYFROMTEXT '(' expr ')'
{ $$= new Item_func_geometry_from_text($3); }
| POLYFROMTEXT '(' expr ',' expr ')'
{ $$= new Item_func_geometry_from_text($3, $5); }
| POLYGON '(' expr_list ')'
{ $$= new Item_func_spatial_collection(* $3,
Geometry::wkbPolygon, Geometry::wkbLineString); }
| POSITION_SYM '(' no_in_expr IN_SYM expr ')'
| POSITION_SYM '(' no_in_expr IN_SYM expr ')'
{ $$ = new Item_func_locate($5,$3); }
{ $$ = new Item_func_locate($5,$3); }
| RAND '(' expr ')'
| RAND '(' expr ')'
...
@@ -2914,6 +2933,66 @@ simple_expr:
...
@@ -2914,6 +2933,66 @@ simple_expr:
| EXTRACT_SYM '(' interval FROM expr ')'
| EXTRACT_SYM '(' interval FROM expr ')'
{ $$=new Item_extract( $3, $5); };
{ $$=new Item_extract( $3, $5); };
geometry_function:
GEOMFROMTEXT '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3)); }
| GEOMFROMTEXT '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3, $5)); }
| GEOMFROMWKB '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_wkb($3)); }
| GEOMFROMWKB '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_wkb($3, $5)); }
| GEOMETRYCOLLECTION '(' expr_list ')'
{ $$= GEOM_NEW(Item_func_spatial_collection(* $3,
Geometry::wkbGeometryCollection,
Geometry::wkbPoint)); }
| LINESTRING '(' expr_list ')'
{ $$= GEOM_NEW(Item_func_spatial_collection(* $3,
Geometry::wkbLineString, Geometry::wkbPoint)); }
| MULTILINESTRING '(' expr_list ')'
{ $$= GEOM_NEW( Item_func_spatial_collection(* $3,
Geometry::wkbMultiLineString, Geometry::wkbLineString)); }
| MLINEFROMTEXT '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3)); }
| MLINEFROMTEXT '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3, $5)); }
| MPOINTFROMTEXT '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3)); }
| MPOINTFROMTEXT '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3, $5)); }
| MPOLYFROMTEXT '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3)); }
| MPOLYFROMTEXT '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3, $5)); }
| MULTIPOINT '(' expr_list ')'
{ $$= GEOM_NEW(Item_func_spatial_collection(* $3,
Geometry::wkbMultiPoint, Geometry::wkbPoint)); }
| MULTIPOLYGON '(' expr_list ')'
{ $$= GEOM_NEW(Item_func_spatial_collection(* $3,
Geometry::wkbMultiPolygon, Geometry::wkbPolygon)); }
| POINT_SYM '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_point($3,$5)); }
| POINTFROMTEXT '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3)); }
| POINTFROMTEXT '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3, $5)); }
| POLYFROMTEXT '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3)); }
| POLYFROMTEXT '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3, $5)); }
| POLYGON '(' expr_list ')'
{ $$= GEOM_NEW(Item_func_spatial_collection(* $3,
Geometry::wkbPolygon, Geometry::wkbLineString)); }
| GEOMCOLLFROMTEXT '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3)); }
| GEOMCOLLFROMTEXT '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3, $5)); }
| LINEFROMTEXT '(' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3)); }
| LINEFROMTEXT '(' expr ',' expr ')'
{ $$= GEOM_NEW(Item_func_geometry_from_text($3, $5)); }
;
fulltext_options:
fulltext_options:
/* nothing */ { $$= FT_NL; }
/* nothing */ { $$= FT_NL; }
| WITH QUERY_SYM EXPANSION_SYM { $$= FT_NL | FT_EXPAND; }
| WITH QUERY_SYM EXPANSION_SYM { $$= FT_NL | FT_EXPAND; }
...
...
sql/table.cc
View file @
0c5b6c19
...
@@ -405,8 +405,13 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
...
@@ -405,8 +405,13 @@ int openfrm(const char *name, const char *alias, uint db_stat, uint prgflag,
// charset and geometry_type share the same byte in frm
// charset and geometry_type share the same byte in frm
if
(
field_type
==
FIELD_TYPE_GEOMETRY
)
if
(
field_type
==
FIELD_TYPE_GEOMETRY
)
{
{
#ifdef HAVE_SPATIAL
geom_type
=
(
Field
::
geometry_type
)
strpos
[
14
];
geom_type
=
(
Field
::
geometry_type
)
strpos
[
14
];
charset
=
&
my_charset_bin
;
charset
=
&
my_charset_bin
;
#else
error
=
4
;
// unsupported field type
goto
err_not_open
;
#endif
}
}
else
else
{
{
...
...
sql/unireg.cc
View file @
0c5b6c19
...
@@ -471,7 +471,12 @@ static bool pack_fields(File file,List<create_field> &create_fields)
...
@@ -471,7 +471,12 @@ static bool pack_fields(File file,List<create_field> &create_fields)
buff
[
12
]
=
(
uchar
)
field
->
interval_id
;
buff
[
12
]
=
(
uchar
)
field
->
interval_id
;
buff
[
13
]
=
(
uchar
)
field
->
sql_type
;
buff
[
13
]
=
(
uchar
)
field
->
sql_type
;
if
(
field
->
sql_type
==
FIELD_TYPE_GEOMETRY
)
if
(
field
->
sql_type
==
FIELD_TYPE_GEOMETRY
)
{
buff
[
14
]
=
(
uchar
)
field
->
geom_type
;
buff
[
14
]
=
(
uchar
)
field
->
geom_type
;
#ifndef HAVE_SPATIAL
DBUG_ASSERT
(
0
);
// Should newer happen
#endif
}
else
if
(
field
->
charset
)
else
if
(
field
->
charset
)
buff
[
14
]
=
(
uchar
)
field
->
charset
->
number
;
buff
[
14
]
=
(
uchar
)
field
->
charset
->
number
;
else
else
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment