Commit 54d4589d authored by Olivier Bertrand's avatar Olivier Bertrand

- Previous MDEV-5261 was generating wrong warnings

modified:
  storage/connect/ha_connect.cc
parent a8b09c14
...@@ -4600,9 +4600,9 @@ int ha_connect::create(const char *name, TABLE *table_arg, ...@@ -4600,9 +4600,9 @@ int ha_connect::create(const char *name, TABLE *table_arg,
} // endfor field } // endfor field
if (IsFileType(type)) {
table= table_arg; // Used by called functions table= table_arg; // Used by called functions
if (IsFileType(type)) {
if (!options->filename) { if (!options->filename) {
// The file name is not specified, create a default file in // The file name is not specified, create a default file in
// the database directory named table_name.table_type. // the database directory named table_name.table_type.
...@@ -4666,6 +4666,8 @@ int ha_connect::create(const char *name, TABLE *table_arg, ...@@ -4666,6 +4666,8 @@ int ha_connect::create(const char *name, TABLE *table_arg,
} // endif filename } // endif filename
} // endif type
// To check whether indexes have to be made or remade // To check whether indexes have to be made or remade
if (!g->Xchk) { if (!g->Xchk) {
PIXDEF xdp; PIXDEF xdp;
...@@ -4704,7 +4706,8 @@ int ha_connect::create(const char *name, TABLE *table_arg, ...@@ -4704,7 +4706,8 @@ int ha_connect::create(const char *name, TABLE *table_arg,
} else { } else {
PIXDEF xdp= GetIndexInfo(); PIXDEF xdp= GetIndexInfo();
if (xdp && !IsTypeIndexable(type)) { if (xdp) {
if (!IsTypeIndexable(type)) {
g->Xchk= NULL; g->Xchk= NULL;
sprintf(g->Message, "Table type %s is not indexable", options->type); sprintf(g->Message, "Table type %s is not indexable", options->type);
my_message(ER_UNKNOWN_ERROR, g->Message, MYF(0)); my_message(ER_UNKNOWN_ERROR, g->Message, MYF(0));
...@@ -4714,11 +4717,12 @@ int ha_connect::create(const char *name, TABLE *table_arg, ...@@ -4714,11 +4717,12 @@ int ha_connect::create(const char *name, TABLE *table_arg,
((PCHK)g->Xchk)->newsep= GetBooleanOption("Sepindex", false); ((PCHK)g->Xchk)->newsep= GetBooleanOption("Sepindex", false);
} // endif Indexable } // endif Indexable
} else if (!((PCHK)g->Xchk)->oldpix)
g->Xchk= NULL;
} // endif Xchk } // endif Xchk
table= st; table= st;
} // endif type
DBUG_RETURN(rc); DBUG_RETURN(rc);
} // end of create } // end of create
......
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