summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2003-07-20 12:26:18 +0200
committerunknown <serg@serg.mylan>2003-07-20 12:26:18 +0200
commitc1ed639cb654cc12f2971d840a541c0d9fa80327 (patch)
treef5346590101ec960b64abe165293a334df435f5b /mysys
parent56b220b11e06c5b6074c49cc114c39ee50be1cd1 (diff)
downloadmariadb-git-c1ed639cb654cc12f2971d840a541c0d9fa80327.tar.gz
bug #715: SELECT YEAR+0 FROM foobar is parsed as 'SELECT' 'YEAR' '+0' => syntax error
mysql-test/r/bigint.result: test results updated mysql-test/r/type_decimal.result: test results updated mysql-test/t/bigint.test: new tests added mysql-test/t/type_decimal.test: error numbers updated sql/item.h: round(9999999999999999999) fixed sql/sql_yacc.yy: bug #715: SELECT YEAR+0 FROM foobar is parsed as 'SELECT' 'YEAR' '+0' => syntax error unary '+' added
Diffstat (limited to 'mysys')
-rw-r--r--mysys/charset.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/mysys/charset.c b/mysys/charset.c
index 7dab1a38325..7a82f8780a0 100644
--- a/mysys/charset.c
+++ b/mysys/charset.c
@@ -63,7 +63,7 @@ static void init_state_maps(CHARSET_INFO *cs)
uint i;
uchar *state_map= cs->state_map;
uchar *ident_map= cs->ident_map;
-
+
/* Fill state_map with states to get a faster parser */
for (i=0; i < 256 ; i++)
{
@@ -76,13 +76,12 @@ static void init_state_maps(CHARSET_INFO *cs)
state_map[i]=(uchar) MY_LEX_IDENT;
#endif
else if (!my_isgraph(cs,i))
- state_map[i]=(uchar) MY_LEX_SKIP;
+ state_map[i]=(uchar) MY_LEX_SKIP;
else
state_map[i]=(uchar) MY_LEX_CHAR;
}
state_map[(uchar)'_']=state_map[(uchar)'$']=(uchar) MY_LEX_IDENT;
state_map[(uchar)'\'']=(uchar) MY_LEX_STRING;
- state_map[(uchar)'-']=state_map[(uchar)'+']=(uchar) MY_LEX_SIGNED_NUMBER;
state_map[(uchar)'.']=(uchar) MY_LEX_REAL_OR_POINT;
state_map[(uchar)'>']=state_map[(uchar)'=']=state_map[(uchar)'!']= (uchar) MY_LEX_CMP_OP;
state_map[(uchar)'<']= (uchar) MY_LEX_LONG_CMP_OP;