summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@magare.gmz>2008-05-01 17:51:26 +0300
committerunknown <gkodinov/kgeorge@magare.gmz>2008-05-01 17:51:26 +0300
commit6ef8efd4d5f758bce57a9d694f98e8c6aee22910 (patch)
tree5318285f9cf8694e024f28cc11284ea3e91e4d47 /client
parent803d77f84f119dc72226dcb040473bd7ce4b4bb5 (diff)
parenta2c99f5977159611fa5b3a1dc2a09e78f9dc5b7f (diff)
downloadmariadb-git-6ef8efd4d5f758bce57a9d694f98e8c6aee22910.tar.gz
Merge gkodinov@bk-internal.mysql.com:/home/bk/mysql-5.1-bugteam
into magare.gmz:/home/kgeorge/mysql/autopush/B36041-5.1-bugteam
Diffstat (limited to 'client')
-rw-r--r--client/mysqltest.c32
1 files changed, 1 insertions, 31 deletions
diff --git a/client/mysqltest.c b/client/mysqltest.c
index c678f5e714d..3f24d23a13f 100644
--- a/client/mysqltest.c
+++ b/client/mysqltest.c
@@ -8094,8 +8094,6 @@ uint replace_len(char * str)
uint len=0;
while (*str)
{
- if (str[0] == '\\' && str[1])
- str++;
str++;
len++;
}
@@ -8194,35 +8192,7 @@ REPLACE *init_replace(char * *from, char * *to,uint count,
}
for (pos=from[i], len=0; *pos ; pos++)
{
- if (*pos == '\\' && *(pos+1))
- {
- pos++;
- switch (*pos) {
- case 'b':
- follow_ptr->chr = SPACE_CHAR;
- break;
- case '^':
- follow_ptr->chr = START_OF_LINE;
- break;
- case '$':
- follow_ptr->chr = END_OF_LINE;
- break;
- case 'r':
- follow_ptr->chr = '\r';
- break;
- case 't':
- follow_ptr->chr = '\t';
- break;
- case 'v':
- follow_ptr->chr = '\v';
- break;
- default:
- follow_ptr->chr = (uchar) *pos;
- break;
- }
- }
- else
- follow_ptr->chr= (uchar) *pos;
+ follow_ptr->chr= (uchar) *pos;
follow_ptr->table_offset=i;
follow_ptr->len= ++len;
follow_ptr++;