Skip to content

Commit d88870e

Browse files
committed
MENT-805 ODBC login fails with with Spider from bb-10.5-MENT-30 if password contains a semicolon
1 parent b3250ab commit d88870e

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

storage/spider/spd_table.cc

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10810,3 +10810,25 @@ void spider_table_remove_share_from_crd_thread(
1081010810
DBUG_VOID_RETURN;
1081110811
}
1081210812
#endif
10813+
10814+
uchar *spider_duplicate_char(
10815+
uchar *dst,
10816+
uchar esc,
10817+
uchar *src,
10818+
uint src_lgt
10819+
) {
10820+
uchar *ed = src + src_lgt;
10821+
DBUG_ENTER("spider_duplicate_char");
10822+
while (src < ed)
10823+
{
10824+
*dst = *src;
10825+
if (*src == esc)
10826+
{
10827+
++dst;
10828+
*dst = esc;
10829+
}
10830+
++dst;
10831+
++src;
10832+
}
10833+
DBUG_RETURN(dst);
10834+
}

storage/spider/spd_table.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -738,3 +738,9 @@ void spider_table_remove_share_from_crd_thread(
738738
SPIDER_SHARE *share
739739
);
740740
#endif
741+
uchar *spider_duplicate_char(
742+
uchar *dst,
743+
uchar esc,
744+
uchar *src,
745+
uint src_lgt
746+
);

0 commit comments

Comments
 (0)