mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge rburnett@bk-internal.mysql.com:/home/bk/mysql-4.1
into bob.(none):/home/reggie/bk/mysql-4.1 BitKeeper/etc/logging_ok: auto-union client/mysql.cc: Auto merged
This commit is contained in:
@ -181,6 +181,7 @@ ram@mysql.r18.ru
|
|||||||
ram@ram.(none)
|
ram@ram.(none)
|
||||||
ranger@regul.home.lan
|
ranger@regul.home.lan
|
||||||
rburnett@build.mysql.com
|
rburnett@build.mysql.com
|
||||||
|
reggie@bob.(none)
|
||||||
root@home.(none)
|
root@home.(none)
|
||||||
root@mc04.(none)
|
root@mc04.(none)
|
||||||
root@x3.internalnet
|
root@x3.internalnet
|
||||||
|
@ -3232,13 +3232,20 @@ static const char* construct_prompt()
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 'p':
|
case 'p':
|
||||||
|
{
|
||||||
#ifndef EMBEDDED_LIBRARY
|
#ifndef EMBEDDED_LIBRARY
|
||||||
if (!connected)
|
if (!connected)
|
||||||
{
|
{
|
||||||
processed_prompt.append("not_connected");
|
processed_prompt.append("not_connected");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (strstr(mysql_get_host_info(&mysql),"TCP/IP") ||
|
|
||||||
|
const char *host_info = mysql_get_host_info(&mysql);
|
||||||
|
if (strstr(host_info, "memory"))
|
||||||
|
{
|
||||||
|
processed_prompt.append( mysql.host );
|
||||||
|
}
|
||||||
|
else if (strstr(host_info,"TCP/IP") ||
|
||||||
!mysql.unix_socket)
|
!mysql.unix_socket)
|
||||||
add_int_to_prompt(mysql.port);
|
add_int_to_prompt(mysql.port);
|
||||||
else
|
else
|
||||||
@ -3247,6 +3254,7 @@ static const char* construct_prompt()
|
|||||||
processed_prompt.append(pos ? pos+1 : mysql.unix_socket);
|
processed_prompt.append(pos ? pos+1 : mysql.unix_socket);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'U':
|
case 'U':
|
||||||
if (!full_username)
|
if (!full_username)
|
||||||
|
@ -912,6 +912,7 @@ int yylex(void *arg, void *yythd)
|
|||||||
if ((thd->client_capabilities & CLIENT_MULTI_STATEMENTS) &&
|
if ((thd->client_capabilities & CLIENT_MULTI_STATEMENTS) &&
|
||||||
(thd->command != COM_PREPARE))
|
(thd->command != COM_PREPARE))
|
||||||
{
|
{
|
||||||
|
lex->safe_to_cache_query=0;
|
||||||
lex->found_colon=(char*)lex->ptr;
|
lex->found_colon=(char*)lex->ptr;
|
||||||
thd->server_status |= SERVER_MORE_RESULTS_EXISTS;
|
thd->server_status |= SERVER_MORE_RESULTS_EXISTS;
|
||||||
lex->next_state=MY_LEX_END;
|
lex->next_state=MY_LEX_END;
|
||||||
|
Reference in New Issue
Block a user