Commit 5ef233aa authored by unknown's avatar unknown

Fixed a limitation bug in mysqlimport. sql_statement was designed to

contain max 1280 characters, but sometimes in rare cases when --columns
was used, more than 1280 characters was needed. This is case when a lot
of columns was specified using this option. Raised the max value to 8448,
which should be enough.

parent 4363c28c
...@@ -238,7 +238,7 @@ static int get_options(int *argc, char ***argv) ...@@ -238,7 +238,7 @@ static int get_options(int *argc, char ***argv)
static int write_to_table(char *filename, MYSQL *sock) static int write_to_table(char *filename, MYSQL *sock)
{ {
char tablename[FN_REFLEN], hard_path[FN_REFLEN], char tablename[FN_REFLEN], hard_path[FN_REFLEN],
sql_statement[FN_REFLEN*2+256], *end; sql_statement[FN_REFLEN*16+256], *end;
my_bool local_file; my_bool local_file;
DBUG_ENTER("write_to_table"); DBUG_ENTER("write_to_table");
DBUG_PRINT("enter",("filename: %s",filename)); DBUG_PRINT("enter",("filename: %s",filename));
......
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