diff options
author | rburnett@bk-internal.mysql.com <> | 2006-08-03 16:54:06 +0200 |
---|---|---|
committer | rburnett@bk-internal.mysql.com <> | 2006-08-03 16:54:06 +0200 |
commit | 22c77e87a27eba1d3ab747456c282255f08cb05a (patch) | |
tree | 2e0b33c7cd3f1083dce485137fd952b52a37dfbd /client | |
parent | 224faba0bbb27006f89e539f9258ae6390efe974 (diff) | |
parent | 35af3d55785bd544502c60b6eb9a8cdefdaad4be (diff) | |
download | mariadb-git-22c77e87a27eba1d3ab747456c282255f08cb05a.tar.gz |
Merge bk-internal.mysql.com:/data0/bk/mysql-5.0
into bk-internal.mysql.com:/data0/bk/mysql-5.0-kt
Diffstat (limited to 'client')
-rw-r--r-- | client/mysql.cc | 3 | ||||
-rw-r--r-- | client/mysqlbinlog.cc | 3 | ||||
-rw-r--r-- | client/mysqltest.c | 2 |
3 files changed, 5 insertions, 3 deletions
diff --git a/client/mysql.cc b/client/mysql.cc index 92ad7864f84..921804a1298 100644 --- a/client/mysql.cc +++ b/client/mysql.cc @@ -1221,7 +1221,8 @@ static bool add_line(String &buffer,char *line,char *in_string, continue; } #endif - if (!*ml_comment && inchar == '\\') + if (!*ml_comment && inchar == '\\' && + !(mysql.server_status & SERVER_STATUS_NO_BACKSLASH_ESCAPES)) { // Found possbile one character command like \c diff --git a/client/mysqlbinlog.cc b/client/mysqlbinlog.cc index 518ab7cf832..9cecdb4eafc 100644 --- a/client/mysqlbinlog.cc +++ b/client/mysqlbinlog.cc @@ -36,6 +36,7 @@ /* That one is necessary for defines of OPTION_NO_FOREIGN_KEY_CHECKS etc */ #include "mysql_priv.h" #include "log_event.h" +#include "sql_common.h" #define BIN_LOG_HEADER_SIZE 4 #define PROBE_HEADER_LEN (EVENT_LEN_OFFSET+4) @@ -1077,7 +1078,7 @@ could be out of memory"); const char *error_msg; Log_event *ev; - len = net_safe_read(mysql); + len= cli_safe_read(mysql); if (len == packet_error) { fprintf(stderr, "Got error reading packet from server: %s\n", diff --git a/client/mysqltest.c b/client/mysqltest.c index 2fc09fbc3d2..352971c4c38 100644 --- a/client/mysqltest.c +++ b/client/mysqltest.c @@ -620,7 +620,7 @@ static void die(const char *fmt, ...) if (cur_file && cur_file != file_stack) fprintf(stderr, "In included file \"%s\": ", cur_file->file_name); - if (start_lineno != 0) + if (start_lineno > 0) fprintf(stderr, "At line %u: ", start_lineno); vfprintf(stderr, fmt, args); fprintf(stderr, "\n"); |