mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
committed by
Anel Husakovic
parent
e23cb3835e
commit
d8ace23d26
@@ -3177,7 +3177,7 @@ static int
|
|||||||
com_go(String *buffer,char *line __attribute__((unused)))
|
com_go(String *buffer,char *line __attribute__((unused)))
|
||||||
{
|
{
|
||||||
char buff[200]; /* about 110 chars used so far */
|
char buff[200]; /* about 110 chars used so far */
|
||||||
char time_buff[52+3+1]; /* time max + space&parens + NUL */
|
char time_buff[52+3+1]; /* time max + space & parens + NUL */
|
||||||
MYSQL_RES *result;
|
MYSQL_RES *result;
|
||||||
ulong timer, warnings= 0;
|
ulong timer, warnings= 0;
|
||||||
uint error= 0;
|
uint error= 0;
|
||||||
@@ -3196,7 +3196,7 @@ com_go(String *buffer,char *line __attribute__((unused)))
|
|||||||
|
|
||||||
if (buffer->is_empty())
|
if (buffer->is_empty())
|
||||||
{
|
{
|
||||||
if (status.batch) // Ignore empty quries
|
if (status.batch) // Ignore empty queries.
|
||||||
return 0;
|
return 0;
|
||||||
return put_info("No query specified\n",INFO_ERROR);
|
return put_info("No query specified\n",INFO_ERROR);
|
||||||
|
|
||||||
@@ -3261,7 +3261,7 @@ com_go(String *buffer,char *line __attribute__((unused)))
|
|||||||
else
|
else
|
||||||
time_buff[0]= '\0';
|
time_buff[0]= '\0';
|
||||||
|
|
||||||
/* Every branch must truncate buff . */
|
/* Every branch must truncate buff. */
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
if (!mysql_num_rows(result) && ! quick && !column_types_flag)
|
if (!mysql_num_rows(result) && ! quick && !column_types_flag)
|
||||||
|
Reference in New Issue
Block a user