Commit 9982d797 authored by serg@serg.mylan's avatar serg@serg.mylan

don't use atoll

parent bd3f7457
...@@ -692,9 +692,11 @@ File_parser::parse(gptr base, MEM_ROOT *mem_root, ...@@ -692,9 +692,11 @@ File_parser::parse(gptr base, MEM_ROOT *mem_root,
parameter->name.str, line); parameter->name.str, line);
DBUG_RETURN(TRUE); DBUG_RETURN(TRUE);
} }
*eol= '\0'; {
*((ulonglong*)(base + parameter->offset))= atoll(ptr); int not_used;
*eol= '\n'; *((ulonglong*)(base + parameter->offset))=
my_strtoll10(ptr, 0, &not_used);
}
ptr= eol+1; ptr= eol+1;
break; break;
case FILE_OPTIONS_TIMESTAMP: case FILE_OPTIONS_TIMESTAMP:
......
...@@ -9670,12 +9670,12 @@ static void test_union_param() ...@@ -9670,12 +9670,12 @@ static void test_union_param()
/* bind parameters */ /* bind parameters */
bind[0].buffer_type= FIELD_TYPE_STRING; bind[0].buffer_type= FIELD_TYPE_STRING;
bind[0].buffer= &my_val; bind[0].buffer= my_val;
bind[0].buffer_length= 4; bind[0].buffer_length= 4;
bind[0].length= &my_length; bind[0].length= &my_length;
bind[0].is_null= (char*)&my_null; bind[0].is_null= (char*)&my_null;
bind[1].buffer_type= FIELD_TYPE_STRING; bind[1].buffer_type= FIELD_TYPE_STRING;
bind[1].buffer= &my_val; bind[1].buffer= my_val;
bind[1].buffer_length= 4; bind[1].buffer_length= 4;
bind[1].length= &my_length; bind[1].length= &my_length;
bind[1].is_null= (char*)&my_null; bind[1].is_null= (char*)&my_null;
......
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