mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge bb-10.2-ext into 10.3
This commit is contained in:
@@ -1143,8 +1143,6 @@ int main(int argc,char *argv[])
|
||||
outfile[0]=0; // no (default) outfile
|
||||
strmov(pager, "stdout"); // the default, if --pager wasn't given
|
||||
|
||||
mysql_init(&mysql);
|
||||
|
||||
{
|
||||
char *tmp=getenv("PAGER");
|
||||
if (tmp && strlen(tmp))
|
||||
@@ -1183,7 +1181,11 @@ int main(int argc,char *argv[])
|
||||
}
|
||||
defaults_argv=argv;
|
||||
if ((status.exit_status= get_options(argc, (char **) argv)))
|
||||
mysql_end(-1);
|
||||
{
|
||||
free_defaults(defaults_argv);
|
||||
my_end(0);
|
||||
exit(status.exit_status);
|
||||
}
|
||||
|
||||
if (status.batch && !status.line_buff &&
|
||||
!(status.line_buff= batch_readline_init(MAX_BATCH_BUFFER_SIZE, stdin)))
|
||||
@@ -2319,8 +2321,10 @@ static bool add_line(String &buffer, char *line, ulong line_length,
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
if (!*ml_comment && inchar == '\\' &&
|
||||
!(*in_string &&
|
||||
if (!*ml_comment && inchar == '\\' && *in_string != '`' &&
|
||||
!(*in_string == '"' &&
|
||||
(mysql.server_status & SERVER_STATUS_ANSI_QUOTES)) &&
|
||||
!(*in_string &&
|
||||
(mysql.server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES)))
|
||||
{
|
||||
// Found possbile one character command like \c
|
||||
|
Reference in New Issue
Block a user