Commit ec44c881 authored by unknown's avatar unknown

Merge work:/home/bk/mysql-4.1

into serg.mysql.com:/usr/home/serg/Abk/mysql-4.1

parents 2aa304d3 b5f740ad
...@@ -1652,11 +1652,10 @@ int Field_long::store(const char *from,uint len,CHARSET_INFO *cs) ...@@ -1652,11 +1652,10 @@ int Field_long::store(const char *from,uint len,CHARSET_INFO *cs)
long tmp; long tmp;
int error= 0; int error= 0;
char *end; char *end;
/* TODO: Make multi-byte-character safe */
while (len && my_isspace(cs,*from)) tmp= cs->scan(cs, from, from+len, MY_SEQ_SPACES);
{ len-= tmp;
len--; from++; from+= tmp;
}
my_errno=0; my_errno=0;
if (unsigned_flag) if (unsigned_flag)
{ {
...@@ -1910,11 +1909,10 @@ int Field_longlong::store(const char *from,uint len,CHARSET_INFO *cs) ...@@ -1910,11 +1909,10 @@ int Field_longlong::store(const char *from,uint len,CHARSET_INFO *cs)
longlong tmp; longlong tmp;
int error= 0; int error= 0;
char *end; char *end;
/* TODO: Make multi byte safe */
while (len && my_isspace(cs,*from)) tmp= cs->scan(cs, from, from+len, MY_SEQ_SPACES);
{ // For easy error check len-= tmp;
len--; from++; from+= tmp;
}
my_errno=0; my_errno=0;
if (unsigned_flag) if (unsigned_flag)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment