summaryrefslogtreecommitdiff
path: root/sql/sql_lex.cc
diff options
context:
space:
mode:
authorunknown <serg@serg.mylan>2004-07-22 00:26:33 +0200
committerunknown <serg@serg.mylan>2004-07-22 00:26:33 +0200
commit1d29e6b0d46abd0416a151734e3b95171a9666a4 (patch)
tree8cd0c0e590ed0d49e90882e0a975bd31a5e810b0 /sql/sql_lex.cc
parenta9856042bc2955bb92da5a4b62fe5c756be84bcb (diff)
downloadmariadb-git-1d29e6b0d46abd0416a151734e3b95171a9666a4.tar.gz
after merge fixes
sql/opt_range.h: compatibility fix sql/sql_lex.cc: cleanup
Diffstat (limited to 'sql/sql_lex.cc')
-rw-r--r--sql/sql_lex.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc
index 23391f6237f..aa1c44b8e73 100644
--- a/sql/sql_lex.cc
+++ b/sql/sql_lex.cc
@@ -111,8 +111,8 @@ void lex_start(THD *thd, uchar *buf,uint length)
LEX *lex= thd->lex;
lex->thd= thd;
lex->next_state=MY_LEX_START;
- lex->buf= buf;
- lex->end_of_query=(lex->ptr=buf)+length;
+ lex->buf= lex->ptr= buf;
+ lex->end_of_query=buf+length;
lex->yylineno = 1;
lex->in_comment=0;
lex->length=0;