summaryrefslogtreecommitdiff
path: root/sql/sql_tablespace.cc
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2006-04-24 13:31:24 +0200
committerunknown <tomas@poseidon.ndb.mysql.com>2006-04-24 13:31:24 +0200
commitb38221a436e5511c97e7846b59f3bb6394083ec5 (patch)
tree0cdad314a74ea42f7fc57f62173c7443d84423f8 /sql/sql_tablespace.cc
parenta0aea60d0e3ea05b8e4d9f58e6ad1d98203eb175 (diff)
downloadmariadb-git-b38221a436e5511c97e7846b59f3bb6394083ec5.tar.gz
Bug #18603 Lost connection on poorly formed "create logfile" and "create tablespace"
Diffstat (limited to 'sql/sql_tablespace.cc')
-rw-r--r--sql/sql_tablespace.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_tablespace.cc b/sql/sql_tablespace.cc
index 954d65ea44e..e7f6b04045e 100644
--- a/sql/sql_tablespace.cc
+++ b/sql/sql_tablespace.cc
@@ -28,7 +28,8 @@ int mysql_alter_tablespace(THD *thd, st_alter_tablespace *ts_info)
If the user haven't defined an engine, this will fallback to using the
default storage engine.
*/
- hton= ha_resolve_by_legacy_type(thd, ts_info->storage_engine);
+ hton= ha_resolve_by_legacy_type(thd, ts_info->storage_engine != DB_TYPE_UNKNOWN ?
+ ts_info->storage_engine : DB_TYPE_DEFAULT);
if (hton->state == SHOW_OPTION_YES &&
hton->alter_tablespace && (error= hton->alter_tablespace(thd, ts_info)))