Skip to content
Permalink
Browse files
client: mysql - fix type
field_names[x][y] is a pointer

client/mysql.cc: In function 'void build_completion_hash(bool, bool)':
client/mysql.cc:2855:37: error: invalid conversion from 'char' to 'char*' [-fpermissive]
       field_names[i][num_fields*2]= '\0';

Signed-off-by: Daniel Black <daniel.black@au.ibm.com>
  • Loading branch information
grooverdan authored and Sergey Vojtovich committed Jul 14, 2017
1 parent 27bc13b commit 7338d3f
Showing 1 changed file with 1 addition and 1 deletion.
@@ -2852,7 +2852,7 @@ You can turn off this feature to get a quicker startup with -A\n\n");
mysql_free_result(fields);
break;
}
field_names[i][num_fields*2]= '\0';
field_names[i][num_fields*2]= NULL;
j=0;
while ((sql_field=mysql_fetch_field(fields)))
{

0 comments on commit 7338d3f

Please sign in to comment.