summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <serg@serg.mysql.com>2003-01-27 17:41:30 +0100
committerunknown <serg@serg.mysql.com>2003-01-27 17:41:30 +0100
commitec44c88165652e30624c1377795f5c9d1885f41c (patch)
treecc93535ecafee9c69cc2d2f327119b305cbc2e7b
parent2aa304d37c1de25b3b18f4eee24a4874a9ce0f0f (diff)
parentb5f740addfaf40639bd06107c8d27051d4e282b6 (diff)
downloadmariadb-git-ec44c88165652e30624c1377795f5c9d1885f41c.tar.gz
Merge work:/home/bk/mysql-4.1
into serg.mysql.com:/usr/home/serg/Abk/mysql-4.1
-rw-r--r--sql/field.cc18
1 files changed, 8 insertions, 10 deletions
diff --git a/sql/field.cc b/sql/field.cc
index de42b8f8655..0fa306fe718 100644
--- a/sql/field.cc
+++ b/sql/field.cc
@@ -1652,11 +1652,10 @@ int Field_long::store(const char *from,uint len,CHARSET_INFO *cs)
long tmp;
int error= 0;
char *end;
- /* TODO: Make multi-byte-character safe */
- while (len && my_isspace(cs,*from))
- {
- len--; from++;
- }
+
+ tmp= cs->scan(cs, from, from+len, MY_SEQ_SPACES);
+ len-= tmp;
+ from+= tmp;
my_errno=0;
if (unsigned_flag)
{
@@ -1910,11 +1909,10 @@ int Field_longlong::store(const char *from,uint len,CHARSET_INFO *cs)
longlong tmp;
int error= 0;
char *end;
- /* TODO: Make multi byte safe */
- while (len && my_isspace(cs,*from))
- { // For easy error check
- len--; from++;
- }
+
+ tmp= cs->scan(cs, from, from+len, MY_SEQ_SPACES);
+ len-= tmp;
+ from+= tmp;
my_errno=0;
if (unsigned_flag)
{