Skip to content

Commit e7802bf

Browse files
committed
- Fix a bug causing the connection string of a partition table not being
edited with the partition name when it was specified in the OPTION_LIST. modified: storage/connect/ha_connect.cc
1 parent 5b460c6 commit e7802bf

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

storage/connect/ha_connect.cc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1064,9 +1064,16 @@ char *ha_connect::GetStringOption(char *opname, char *sdef)
10641064

10651065
} // endif Table_charset
10661066

1067-
if (!opval && options && options->oplist)
1067+
if (!opval && options && options->oplist) {
10681068
opval= GetListOption(xp->g, opname, options->oplist);
10691069

1070+
if (opval && (!stricmp(opname, "connect")
1071+
|| !stricmp(opname, "tabname")
1072+
|| !stricmp(opname, "filename")))
1073+
opval = GetRealString(opval);
1074+
1075+
} // endif opval
1076+
10701077
if (!opval) {
10711078
if (sdef && !strcmp(sdef, "*")) {
10721079
// Return the handler default value

0 commit comments

Comments
 (0)