diff options
| author | Tatjana Azundris Nuernberg <tatjana.nuernberg@oracle.com> | 2011-08-08 17:45:43 +0100 |
|---|---|---|
| committer | Tatjana Azundris Nuernberg <tatjana.nuernberg@oracle.com> | 2011-08-08 17:45:43 +0100 |
| commit | be6f501f478daff15ef61c0cbb3ebc6c65b30bf2 (patch) | |
| tree | cc3e4367c702b80f1519e45cda93846dc00c8c2b /sql/sql_parse.cc | |
| parent | 337d7935d988fe7ad0336d9dcb7ce9e8eea01af6 (diff) | |
| parent | 4a0516a70a44c6df83991bd97491e9c7e81dc369 (diff) | |
| download | mariadb-git-be6f501f478daff15ef61c0cbb3ebc6c65b30bf2.tar.gz | |
manual merge
Diffstat (limited to 'sql/sql_parse.cc')
| -rw-r--r-- | sql/sql_parse.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc index 885db292699..4df77b5b15b 100644 --- a/sql/sql_parse.cc +++ b/sql/sql_parse.cc @@ -2348,6 +2348,12 @@ case SQLCOM_PREPARE: goto end_with_restore_list; #endif /* + If no engine type was given, work out the default now + rather than at parse-time. + */ + if (!(create_info.used_fields & HA_CREATE_USED_ENGINE)) + create_info.db_type= ha_default_handlerton(thd); + /* If we are using SET CHARSET without DEFAULT, add an implicit DEFAULT to not confuse old users. (This may change). */ |
