Merging from mysql-5.1.
This commit is contained in:
commit
e17c9279ee
@ -1507,7 +1507,12 @@ generate_primary_key_list(MYSQL *mysql, option_string *engine_stmt)
|
|||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
result= mysql_store_result(mysql);
|
if (!(result= mysql_store_result(mysql)))
|
||||||
|
{
|
||||||
|
fprintf(stderr, "%s: Error when storing result: %d %s\n",
|
||||||
|
my_progname, mysql_errno(mysql), mysql_error(mysql));
|
||||||
|
exit(1);
|
||||||
|
}
|
||||||
primary_keys_number_of= mysql_num_rows(result);
|
primary_keys_number_of= mysql_num_rows(result);
|
||||||
|
|
||||||
/* So why check this? Blackhole :) */
|
/* So why check this? Blackhole :) */
|
||||||
@ -1879,10 +1884,15 @@ limit_not_met:
|
|||||||
{
|
{
|
||||||
if (mysql_field_count(mysql))
|
if (mysql_field_count(mysql))
|
||||||
{
|
{
|
||||||
result= mysql_store_result(mysql);
|
if (!(result= mysql_store_result(mysql)))
|
||||||
while ((row = mysql_fetch_row(result)))
|
fprintf(stderr, "%s: Error when storing result: %d %s\n",
|
||||||
counter++;
|
my_progname, mysql_errno(mysql), mysql_error(mysql));
|
||||||
mysql_free_result(result);
|
else
|
||||||
|
{
|
||||||
|
while ((row= mysql_fetch_row(result)))
|
||||||
|
counter++;
|
||||||
|
mysql_free_result(result);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} while(mysql_next_result(mysql) == 0);
|
} while(mysql_next_result(mysql) == 0);
|
||||||
queries++;
|
queries++;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user