mirror of
https://github.com/MariaDB/server.git
synced 2026-05-12 01:50:11 +02:00
merge with 5.3
sql/sql_insert.cc: CREATE ... IF NOT EXISTS may do nothing, but it is still not a failure. don't forget to my_ok it. ****** CREATE ... IF NOT EXISTS may do nothing, but it is still not a failure. don't forget to my_ok it. sql/sql_table.cc: small cleanup ****** small cleanup
This commit is contained in:
commit
76f0b94bb0
1705 changed files with 166479 additions and 39785 deletions
|
|
@ -93,12 +93,16 @@ int main(int argc, char *argv[])
|
|||
printf("\tFRM length %u\n", reader_handle.frm_length);
|
||||
if (reader_handle.comment_start_pos)
|
||||
{
|
||||
char *comment =
|
||||
(char *) malloc(sizeof(char) * reader_handle.comment_length);
|
||||
azread_comment(&reader_handle, comment);
|
||||
printf("\tComment length %u\n\t\t%.*s\n", reader_handle.comment_length,
|
||||
reader_handle.comment_length, comment);
|
||||
free(comment);
|
||||
char *comment = (char *) my_malloc(reader_handle.comment_length,
|
||||
MYF(MY_WME));
|
||||
if (comment)
|
||||
{
|
||||
azread_comment(&reader_handle, comment);
|
||||
printf("\tComment length %u\n\t\t%.*s\n",
|
||||
reader_handle.comment_length,
|
||||
reader_handle.comment_length, comment);
|
||||
my_free(comment,MYF(0));
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
|
|
@ -180,7 +184,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
azio_stream writer_handle;
|
||||
|
||||
buffer= (char *)malloc(reader_handle.longest_row);
|
||||
buffer= (char *) my_malloc(reader_handle.longest_row, MYF(0));
|
||||
if (buffer == NULL)
|
||||
{
|
||||
printf("Could not allocate memory for row %llu\n", row_count);
|
||||
|
|
@ -251,7 +255,7 @@ int main(int argc, char *argv[])
|
|||
break;
|
||||
}
|
||||
|
||||
free(buffer);
|
||||
my_free(buffer, MYF(0));
|
||||
|
||||
azclose(&writer_handle);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue