ecsape char '\Z' wrong

In mysql-connector, it's '\Z', not '\z'.Now, this bug  will change oringinal data
This commit is contained in:
snail
2014-11-14 18:11:01 +08:00
parent a77b71530d
commit 4f21696387

View File

@@ -24,7 +24,7 @@ static unsigned int num_escape_sql_str(unsigned char *dst, unsigned char *src, s
case '\n':
case '\r':
case '\t':
case 26: /* \z */
case 26: /* \Z */
case '\\':
case '\'':
case '"':
@@ -73,7 +73,7 @@ escape_sql_str(unsigned char *dst, unsigned char *src, size_t size)
case 26:
*dst++ = '\\';
*dst++ = 'z';
*dst++ = 'Z';
break;
case '\\':