diff options
author | monty@donna.mysql.com <> | 2000-10-17 00:47:15 +0300 |
---|---|---|
committer | monty@donna.mysql.com <> | 2000-10-17 00:47:15 +0300 |
commit | 117d8b7f64bc9be9fa74a61644936031ef43e1ee (patch) | |
tree | ab2709570d10aac2956fa63114d45c79b2b5ea19 /sql/sql_table.cc | |
parent | 422979694649ad87e1406a8ea408467cbc4e5d0e (diff) | |
download | mariadb-git-117d8b7f64bc9be9fa74a61644936031ef43e1ee.tar.gz |
Automatic repair of MyISAM tables + small bug fixes
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 23c0f1d05ec..87c94c22169 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -501,6 +501,8 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name, if ((create_info->options & HA_LEX_CREATE_TMP_TABLE) && find_temporary_table(thd,db,table_name)) { + if (create_info->options & HA_LEX_CREATE_IF_NOT_EXISTS) + DBUG_RETURN(0); my_error(ER_TABLE_EXISTS_ERROR,MYF(0),table_name); DBUG_RETURN(-1); } |