MENT-805 ODBC login fails with with Spider from bb-10.5-MENT-30 if password contains a semicolon
This commit is contained in:
parent
b3250ab3b2
commit
d88870e6cc
@ -10810,3 +10810,25 @@ void spider_table_remove_share_from_crd_thread(
|
||||
DBUG_VOID_RETURN;
|
||||
}
|
||||
#endif
|
||||
|
||||
uchar *spider_duplicate_char(
|
||||
uchar *dst,
|
||||
uchar esc,
|
||||
uchar *src,
|
||||
uint src_lgt
|
||||
) {
|
||||
uchar *ed = src + src_lgt;
|
||||
DBUG_ENTER("spider_duplicate_char");
|
||||
while (src < ed)
|
||||
{
|
||||
*dst = *src;
|
||||
if (*src == esc)
|
||||
{
|
||||
++dst;
|
||||
*dst = esc;
|
||||
}
|
||||
++dst;
|
||||
++src;
|
||||
}
|
||||
DBUG_RETURN(dst);
|
||||
}
|
||||
|
@ -738,3 +738,9 @@ void spider_table_remove_share_from_crd_thread(
|
||||
SPIDER_SHARE *share
|
||||
);
|
||||
#endif
|
||||
uchar *spider_duplicate_char(
|
||||
uchar *dst,
|
||||
uchar esc,
|
||||
uchar *src,
|
||||
uint src_lgt
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user