mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
10.0-base merge
This commit is contained in:
@ -2312,17 +2312,19 @@ static bool add_line(String &buffer,char *line,char *in_string,
|
||||
{
|
||||
uint length=(uint) (out-line);
|
||||
|
||||
if (!truncated &&
|
||||
(length < 9 ||
|
||||
my_strnncoll (charset_info,
|
||||
(uchar *)line, 9, (const uchar *) "delimiter", 9)))
|
||||
if (!truncated && (length < 9 ||
|
||||
my_strnncoll (charset_info, (uchar *)line, 9,
|
||||
(const uchar *) "delimiter", 9) ||
|
||||
(*in_string || *ml_comment)))
|
||||
{
|
||||
/*
|
||||
Don't add a new line in case there's a DELIMITER command to be
|
||||
added to the glob buffer (e.g. on processing a line like
|
||||
"<command>;DELIMITER <non-eof>") : similar to how a new line is
|
||||
not added in the case when the DELIMITER is the first command
|
||||
entered with an empty glob buffer.
|
||||
entered with an empty glob buffer. However, if the delimiter is
|
||||
part of a string or a comment, the new line should be added. (e.g.
|
||||
SELECT '\ndelimiter\n';\n)
|
||||
*/
|
||||
*out++='\n';
|
||||
length++;
|
||||
@ -4727,7 +4729,13 @@ put_info(const char *str,INFO_TYPE info_type, uint error, const char *sqlstate)
|
||||
if (info_type == INFO_ERROR)
|
||||
{
|
||||
if (!opt_nobeep)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
MessageBeep(MB_ICONWARNING);
|
||||
#else
|
||||
putchar('\a'); /* This should make a bell */
|
||||
#endif
|
||||
}
|
||||
vidattr(A_STANDOUT);
|
||||
if (error)
|
||||
{
|
||||
|
Reference in New Issue
Block a user