Commit d88870e6 authored by Kentoku SHIBA's avatar Kentoku SHIBA

MENT-805 ODBC login fails with with Spider from bb-10.5-MENT-30 if password contains a semicolon

parent b3250ab3
......@@ -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
);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment